r/processing • u/gmantsang • Jan 01 '16
Help plz
Hello processing,
If some one could help that would be nice.
I am currently trying to make a program that does this but at random positions after a set number of turns.
[This is currently my try at creating it but.....] (http://www.openprocessing.org/sketch/285819)
as you can see its not doing what the original was.
0
Upvotes
1
u/forgotmyusernamedamm Jan 02 '16
I would create two global variable for the x and y location of the center of the spiral. Then replace the line
translate(random(500), random(500)); with
translate(x,y);
After 50 cycles set the x and y values to a random number.