Closed pixelzoom closed 6 years ago
Added newSubpath(), see commit above. It behaves like a moveTo (but without moving to a point), so the inlined example with three circles:
var shape = new kite.Shape();
var path = new scenery.Path( shape, { stroke: 'red' } );
shape.circle( 50, 50, 20 ).newSubpath().circle( 100, 100, 20 ).newSubpath().circle( 150, 50, 20 );
scene.addChild( path );
results in:
Can you try it out?
I used newSubpath
to draw the Color Vision "thought bubbles" using a single Shape, see above commit. It worked great. Thanks!
I'd like to describe the "thought bubbles" in Color Vision (screenshot below) as one Shape, rendered as one Path. It would be 4 ellipses, e.g.:
var shape = new Shape().ellipse(...).ellipse(...).ellipse(...).ellipse(...);
There's currently no way to do this without self-computing the starting point of each ellipse.