FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Responsive Form, Games
(Moderator: REAS)
   spirograph movement
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: spirograph movement  (Read 426 times)
mrb

WWW
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
 
Pages: 1 

« Previous topic | Next topic »