moving background up
in
Programming Questions
•
7 months ago
Hi , I have a question related to the worlfram cellular automata that comes with processing in the examples folder.
That program works in this way:
It generates line per line the image going from up to down, when it arrives to the bottom of the sketch it restarts with a new random set of rules.
What i need is to adapt this code to a specific behaivor:
instead of restarting a new ca with new rules when it arrives to the bottom i need that it continue generating the same cellular automata with the same rules. I need that when it arrives to the bottom all the image (background) can move up to the first line in the top of the window and then continue generating the patterns until it arrives again to the bottom and again it moves up the image to the first line and then it continue generating the pattern .... and i need to repeat this process infinitely.
How can i achive this? any idea how to move the background image up?
cheers
R.
1