- From: <DPawson@rnib.org.uk>
- Date: Tue, 9 Apr 2002 15:48:00 +0100
- To: tobiasreif@pinkjuice.com, www-svg@w3.org
Tobias wrote: > ... so it's > > <svg viewBox="0 0 100 100"> > <path > style='stroke:black;fill:none' > d="M 10 10 l 10,10 c 0,20 40,0 0,-20"/> > <path d="M 10 10 L 20,20 C 20,40 60,20 20,0" > style="stroke: red; fill:none"/> > </svg> My reasoning goes something like: The first and second control points are relative to the last point (in this case a relative move provided by the l command), so starting at 10 10, the line is to 20,20 (ref point for the bezier). The control points for the curve are then relative to this point. and I've just found out that successive cubic beziers update the X,Y position after each triple ;-) hence M 0,0 c cp1 cp2 ep cp3 cp4 ep control point 3 (cp3) is relative to ep (the end point of the first curve). This rolls on until the next absolute position, or change of command! Fun this :-) HTH Regards DaveP - NOTICE: The information contained in this email and any attachments is confidential and may be legally privileged. If you are not the intended recipient you are hereby notified that you must not use, disclose, distribute, copy, print or rely on this email's content. If you are not the intended recipient, please notify the sender immediately and then delete the email and any attachments from your system. RNIB has made strenuous efforts to ensure that emails and any attachments generated by its staff are free from viruses. However, it cannot accept any responsibility for any viruses which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk 14th June 2002 is RNIB Look Loud Day - visit http://www.lookloud.org.uk to find out all about it.
Received on Tuesday, 9 April 2002 10:51:23 UTC