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

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?

Received on Tuesday, 22 November 2011 13:02:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:26 UTC