Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage #9

Open
automata opened this issue Apr 25, 2014 · 2 comments
Open

Coverage #9

automata opened this issue Apr 25, 2014 · 2 comments
Labels

Comments

@automata
Copy link
Member

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?

@forresto
Copy link
Member

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:
screen shot 2014-04-25 at 10 05 29 am

@forresto
Copy link
Member

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

screen shot 2014-04-25 at 5 18 43 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants