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

Add DSL support for generating patterns #4

Open
bfoz opened this issue Aug 7, 2012 · 2 comments
Open

Add DSL support for generating patterns #4

bfoz opened this issue Aug 7, 2012 · 2 comments

Comments

@bfoz
Copy link
Owner

bfoz commented Aug 7, 2012

square waves, dovetails, etc

@bfoz
Copy link
Owner Author

bfoz commented Jan 20, 2014

This might be better off in the Polyline DSL. I need to think about that...
'repeat' command is for a pattern along a line. Maybe a 'follow' command for patterns along other shapes. Maybe just a follow command...
'square_wave' can be syntactic sugar

Should take arguments similar to drawing a line segment
The block parameters are the step size, the current point along the line segment, the start point, and the end point
repeat from:[], to:[], do |step, current, to, from|
# Logo commands
# forward, left, turn, etc
end

@bfoz
Copy link
Owner Author

bfoz commented Jan 25, 2014

I've implemented a basic 'repeat' command that seems to work well enough. The implementation isn't pretty. Look into doing this with Fibers.

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

No branches or pull requests

1 participant