mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
f43abe2f32
Noticed that curveto and quadratic bezier curveto can be differentiated by format of the handleIn/handleOut variables in each segment (we think) If either handleIn.x and handleOut.x = 0 OR handleIn.y and handleOut.y = 0, then that means the curve is a simple curveTo tag in SVG. If handleIn.x = -handleOut.x AND handleIn.y = -handleOut.y, then you have a quadriatic Bezier Curveto in SVG (using the Q tag). We *HOPE* and think that that curveTo(through, to) (a method creating an arc that passes through the "through" point and ends at the "to" point) simply creates 2 segments, each with a handleIn and Out, which can be read and put into SVG seperately, making our lives a lot easier. Created more SVG test files. Made RGBConverter more efficient with another method to help reduce copied lines of code. |
||
---|---|---|
.. | ||
BezierTool.html | ||
Circles.html | ||
Clouds.html | ||
DrippingBrush.html | ||
FancyBrush.html | ||
Grid.html | ||
MetaBalls.html | ||
MultiLines.html | ||
PathEditing.html | ||
Simplify.html | ||
SquareRounded.html | ||
Stars.html | ||
SVGBezierTool.html | ||
SVGCircles.html | ||
SVGGrid.html | ||
SVGStars.html | ||
Vektor.html | ||
Wave.html | ||
WormFarm.html |