noflo-canvas
noflo-canvas copied to clipboard
Coverage
Analyzing the canvas 2d API I want to start discussing its coverage/mapping to components.
As a beginning, how to create paths with mixed lineTo, arcTo, moveTo instructions?
MakePath, with single commands, makes the first point moveTo and the rest lineTo.
No arcTo yet
There isn't a way to do moveTo in the middle of a path. That could be its own component. Then in Draw.path() if the item is a Point, work as it does now, MoveTo or LineTo do those specific.
PS, this is a challenge that I give when teaching JS. noflo-canvas makes a totally different way to look at the problem and solution:

Curves are now arrayable. In this case, the first point works as a moveTo to do before each curve path.
