June 24, 2009
Still messing around with Spirograph...
What if I had multiple generations of dial drawing patterns? Well in that case, I cannot rely on math functions for Spirographing. Basically I have to employ recursion function in VB, which confused a good chunk of my brain. Drawing diagrams and breaking code into a little tasks definitely helps and here is what I came up with.
(left) Dials rotate along each parent's perimeter by an user defined angle. (right) User defines a dbl revolution for the first dial. The following dials rotate according to the arc length.
dblRev = 1 for 360deg. Initial dial revolution (dblRev) changes from 0.1 to 0.5. These steps become animation frames.
June 7, 2009
spirograph function を使えばパターンはすぐ描けましたが、ダイヤルに思いのほか苦戦してしまいました。なんだか和菓子みたいです。
Spirograph ♪♪ I have been wanting to try this out for a while.
It should have been my personal java project, but got impatient letting my skill catch up with ideas. So ended up doing it in vb.
Gray circles and lines that overlap with colored patterns are the dials and offset points (wholes for pencils). Spirograph function takes care of the offset points that are outside the moving dial. Users have an option whether inside circle or outside one moves. I placed line color in a loop and had a lot of fun!