Categories

2 Train | code

int num = 50; float[] x1 = new float[num]; float[] y1 = new float[num]; float[] x2= new float[num]; float[] y2 = new float[num]; float[] x3 = new float[num]; float[] y3 = new float[num]; void setup(){ size(640,320); noStroke(); } void draw(){ background(0); fill(255); for (int i = 0; i < num-3; i++){ x1[i] = x1[i+3]; y1[i] = y1[i+3]; x2[1] = x2[i+3]+5; y2[1] = y2[i+3]+5; x3[1]...

Continue Reading