Closed jonathanolson closed 7 years ago
See https://github.com/phetsims/bending-light/issues/174#issuecomment-137877435 for a use-case, since we'd need to extract out the Arc to mutate. Much easier to directly create a Shape based on one segment.
It would be great to tell kite to use more than 1 connected (or unconnected) segments, also.
This is possible, via creating:
var segments = // something var subpath = new kite.Subpath( segments ); // can include closed flag if closed var shape = new kite.Shape( [ subpath ] );
See https://github.com/phetsims/bending-light/issues/174#issuecomment-137877435 for a use-case, since we'd need to extract out the Arc to mutate. Much easier to directly create a Shape based on one segment.
It would be great to tell kite to use more than 1 connected (or unconnected) segments, also.