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

Spirograph module #3

Open
fryguybob opened this issue Aug 4, 2012 · 2 comments
Open

Spirograph module #3

fryguybob opened this issue Aug 4, 2012 · 2 comments

Comments

@fryguybob
Copy link
Member

(Imported from http://code.google.com/p/diagrams/issues/detail?id=85. Original issue from [email protected] on July 17, 2012, 04:03:01 PM UTC)

It would be fun to have a module to generate Spirograph images. The basic idea would be to generate a discrete set of points lying on a cycloid, epicycloid, or whatever, and then use them to create a cubic spline.

@fryguybob
Copy link
Member Author

(Imported. Original comment by [email protected] on July 17, 2012, 08:40:21 PM UTC)

For the case of circles or ellipses inside circles it should be straight forward to represent the resulting motion of the pen by building up transformations relative to the point of contact between the inner and outer shapes. As the shapes move, the new relative position depends on the distance along the surface. For non-circle shapes, specifically ones with sharp points, there is extra motion where the point of contact hits the cusp and the inner part can now move freely. Piecewise these should all be nice continuous motions that can be expressed with a single transformation, so I think we can come up with something that composes really nicely.

@byorgey
Copy link
Member

byorgey commented Sep 21, 2012

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

No branches or pull requests

2 participants