L’etichetta Q e x1 y1 x y dal punto attuale a x y utilizzando x1 y1 come punto di controllo.
1 2 3 4 5 6 7 8 9 10 11 |
<?xml version="1.0"?> <svg xmlns = "http://www.w3.org/2000/svg" > <g transform="translate(50,200)" fill="none" stroke-width="3"> <path d = "M 0,0 L 500,0" stroke="gray" /> <path d = "M 0,0 Q 125,100 250,0 Q 375,-100 500,0" stroke="red" /> <path d = "M 0,0 Q 125,200 250,0 Q 375,-200 500,0" stroke="green" /> <path d = "M 0,0 Q 125,300 250,0 Q375,-300 500,0" stroke="blue" /> </g> </svg> |
Si può semplificare, dopo il primo B, con T x,y continua verso x,y, come punto di controllo il riflesso del precedente
1 2 3 4 5 6 7 8 9 10 11 |
<?xml version="1.0"?> <svg xmlns = "http://www.w3.org/2000/svg" > <g transform="translate(50,200)" fill="none" stroke-width="3"> <path d = "M 0,0 L 500,0" stroke="gray" /> <path d = "M 0,0 Q 125,100 250,0 T 500,0" stroke="red" /> <path d = "M 0,0 Q 125,200 250,0 T 500,0" stroke="green" /> <path d = "M 0,0 Q 125,300 250,0 T 500,0" stroke="blue" /> </g> </svg> |