mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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. |
||
---|---|---|
.. | ||
Animated | ||
css | ||
Games | ||
Node.js | ||
Rasters | ||
Scripts | ||
Tools |