SVG Path Arcs (สุนทร-พีรพัฒน์ 63070125)
✨ PHIRAPHAT KITPROMPHON
<html> <head> <title>Let's Start </title> <style> body{ background:#333; margin:1em; font-family:sans-serif; color:white; } svg{ background:#342892; } </style> </head> <body> <svg viewBox="0 0 100 100"> <!---bg---> <path fill="#3c3ea1" stroke="#3c3ea1" stroke-width="2" stroke-linecap="round" d="m-20, 10 a1 1, 0,1 0, 130 -15"/> <path fill="#4564bb" stroke="#4564bb" stroke-width="2" stroke-linecap="round" d="m-15, 10 a1 1, 0,1 0, 110 -15"/> <path fill="#3f6bc1" stroke="#3f6bc1" stroke-width="2" stroke-linecap="round" d="m-15, 10 a1 1, 0,1 0, 90 -15"/> <path fill="#30278f" stroke="#30278f" stroke-width="2" stroke-linecap="round" d="m-15, 10 a1 1, 0,1 0, 70 -15"/> <path fill="#333a9b" stroke="#333a9b" stroke-width="2" stroke-linecap="round" d="m-5, 10 a1 1, 0,1 0, 50 -15"/> <path fill="#1f2482" stroke="#1f2482" stroke-width="" stroke-linecap="round" d="m0, 10 a1 1, 0,0 1, 30 -15"/> <path fill="#1f2482" stroke="#1f2482" stroke-width="" stroke-linecap="round" d="m0, 10 a1 1, 0,1 0, 30 -15"/> <!---ดาว---> <path fill="#ffe900" stroke="" stroke-width="" stroke-linecap="round" d="m55, 15 a1 1, 0,0 1, 3 5"/> <path fill="#ffe900" stroke="" stroke-width="" stroke-linecap="round" d="m55, 15 a1 1, 0,1 0, 3 5"/> <path fill="#edf2b2" stroke="" stroke-width="" stroke-linecap="round" d="m75, 30 a1 1, 0,0 1, 3 1"/> <path fill="#edf2b2" stroke="" stroke-width="" stroke-linecap="round" d="m75, 30 a1 1, 0,1 0, 3 1"/> <path fill="#fff59d" stroke="" stroke-width="" stroke-linecap="round" d="m40, 45 a1 1, 0,0 1, 3 4"/> <path fill="#fff59d" stroke="" stroke-width="" stroke-linecap="round" d="m40, 45 a1 1, 0,1 0, 3 4"/> <path fill="#ffe900" stroke="" stroke-width="" stroke-linecap="round" d="m65, 55 a1 1, 0,0 1, 3 2"/> <path fill="#ffe900" stroke="" stroke-width="" stroke-linecap="round" d="m65, 55 a1 1, 0,1 0, 3 2"/> <path fill="#f6b319" stroke="" stroke-width="" stroke-linecap="round" d="m85, 5 a1 1, 0,0 1, 3 2"/> <path fill="#f6b319" stroke="" stroke-width="" stroke-linecap="round" d="m85, 5 a1 1, 0,1 0, 3 2"/> <!---star---> <path fill="#ff00" stroke="#f96c08" stroke-width="2" stroke-linecap="round" d=" m10, 20 a1 3, 60, 0 1, 25 0 " /> <path fill="#ffeb3b" stroke="#ffeb3b" stroke-width="1" stroke-linecap="round" d=" m13.5, 30 a1 1, 0,0 0, 15 -20 " /> <path fill="#ff00" stroke="#f96c08" stroke-width="2" stroke-linecap="round" d=" m10, 20 a1 3, 60, 0 0, 25 0 " /> <path fill="#ffeb3b" stroke="#ffeb3b" stroke-width="1" stroke-linecap="round" d=" m13.5, 30 a1 1, 0, 0 1, 15 -20z " /> <g class="face" transform="translate(-9 -10)"> <path stroke-width="1" stroke="black" fill="transparent" stroke-linecap="round" d="M32,25 Q30,20 35,21"></path> <path stroke-width="1" stroke="black" fill="transparent" stroke-linecap="round" d="M21,34 Q19,29 24,30"></path> <path stroke-width="1" stroke="black" fill="transparent" stroke-linecap="round" d="M30,36 Q37,34 35,30"></path> </g> <!---เขา---> <path fill="#000000" stroke="d000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d=" m3,100 a20,40 0 0,1 38,-10 a20,65 0 0,1 30,15 a20,60 0 0,1 36,-5 z " /> <path fill="#00" stroke="d000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d=" m60,100 a20,45 0 0,1 35,0 z" /> <path fill="#00" stroke="d000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d=" m50,100 a20,45 0 0,1 30,0z" /> <path fill="#00" stroke="d000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d=" m-4,100 a10,15 0 0,1 30,0z" /> <!---เมฆ---> <path fill="#a7ffeb" stroke="" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" d=" m78,40 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1 " > <animate attributeName="d" values=" m78,40 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1; m75,40 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1; m78,40 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1; " dur="1s" repeatCount="indefinite" /> </path> <path fill="#a7ffeb" stroke="" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" d=" m15,50 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1 " > <animate attributeName="d" values=" m15,50 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1; m18,50 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1; m15,50 a1,1 0 0,0 0,3 a1,1 0 0,0 0,4.5 h15 a1,1 0 0,0 -3,-4 a1,1 0 0,0 -6,-3 a1,1 0 0,0 -6,-1; " dur="1s" repeatCount="indefinite" /> <!--- Grid ---> <defs> <pattern id="grid" viewBox="0,0,10,10" width="1%" height="1%"> <rect fill="#0001" width="1" height="10" x="1" y="0"/> <rect fill="#0001" width="1" height="10" x="3" y="0"/> <rect fill="#0001" width="1" height="10" x="5" y="0"/> <rect fill="#0001" width="1" height="10" x="7" y="0"/> <rect fill="#0001" width="1" height="10" x="9" y="0"/> <rect fill="#0001" width="10" height="1" x="0" y="1"/> <rect fill="#0001" width="10" height="1" x="0" y="3"/> <rect fill="#0001" width="10" height="1" x="0" y="5"/> <rect fill="#0001" width="10" height="1" x="0" y="7"/> <rect fill="#0001" width="10" height="1" x="0" y="9"/> <path d="M0 0 h10 L9 1 h-8 v8 L0 10 z" fill="#ff05"/> <path d="M10 10 h-10 L1 9 h8 v-8 L10 0 z" fill="#0f05"/> <rect fill="#0002" width="10" height=".1" x="0" y="9.9"/> <rect fill="#0002" width="10" height=".1" x="0" y="0"/> <rect fill="#0002" height="10" width=".1" y="0" x="9.9"/> <rect fill="#0002" height="10" width=".1" y="0" x="0"/> </pattern> </defs> <rect fill="url(#grid)" width="1000" height="1000" x="0" y="0" style="opacity:.5"/> </svg> <h5> อันนี้ลองเปลี่ยนบรรทัด 82 คู่ที่ 3 เป็น 0,0 0,1 1,0 1,1 ดูค่า </h5> <svg xmlns="http://www.w3.org/2000/svg" width="320" height="320"> <path d="M 10 315 L 110 215 A 36,60 0 1,1 150.71,170.29 L 172.55 152.45 A 30,50 -45 0,1 215.1,109.9 L 315 10" stroke="black" fill="green" stroke-width="2" fill-opacity="0.5"/> <circle cx="150.71" cy="170.29" r="2" fill="red"/> <circle cx="110" cy="215" r="2" fill="red"/> <ellipse cx="144.931" cy="229.512" rx="36" ry="60" fill="transparent" stroke="blue"/> <ellipse cx="115.779" cy="155.778" rx="36" ry="60" fill="transparent" stroke="blue"/> </svg> </body> </html>