W3C home > Mailing lists > Public > www-svg@w3.org > November 2011

Correct usage of cubic Bézier curve command s/S

From: Satz Klauer <satzklauer@googlemail.com>
Date: Tue, 22 Nov 2011 12:55:44 +0100
Message-ID: <CAJoPetopGo1UaiJ5qvG7Foz3sCXim3RGKrbmzrT5notAs67x3w@mail.gmail.com>
To: www-svg@w3.org
Hi,

I've got some troubles in implementing the cubic Bézier curve commands
s and S correctly. According to the descritption at
http://www.w3.org/TR/SVG/paths.html#PathDataCubicBezierCommands the
missing first control point has to be generated by reflecting the
second control point of the previous Bézier curve command.

But reflect at what? Reflecting at the X-axis (as shown in the example
image) doesn't seem to be correct. And reflecting at the intermediate
point (endpoint of the previous and start point of the current curve)
causes strange results in my application.

So how should that be done correctly?

Elmi
Received on Tuesday, 22 November 2011 13:02:59 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:49 GMT