« Return to Thread: free hand

Re: free hand

by Peppe :: Rate this Message:

Reply to Author | View in Thread

i try to add a path creating a textstring but there is a problem...i don't know what values to use (M C Q T etc..)...for example: if i use C value, what value can i add in C parameters? because C is C x1,y1 x2,y2 x,y but i have only the x,y values...
pathValue = "M "+ startPt.getX()+","+startPt.getY()+" C ";
pathValue = pathValue + pt.getX()+ ","+ pt.getY()+ " " + .......(what??!!);
path.setAttributeNS(null, "d", pathValue);

 « Return to Thread: free hand