|
Author |
Topic: spirograph movement (Read 426 times) |
|
mrb
|
spirograph movement
« on: Jun 16th, 2003, 2:02am » |
|
here's an example i have been working on on and off, more of a visual exercise than anything, brushing up on OOP skills. there are four groups of stars ("sand") that move around together, using spirograph functions (very close to the supershape functions in theory) as their paths of motion. code is still a bit messy and owes thanks to casey's example for "storing input," which i used to allow each star to leave trails. click on the stage to focus, and also to generate a new movement function for each grouping to follow. press c to toggle whether or not the objects are constrained to the black box. applet: http://a.parsons.edu/~mrb/java/sand/ source: http://a.parsons.edu/~mrb/java/sand/sand.java mrb
|
|
|
|
|