/** * Variables. * * Variables are used for storing values.

In this example, change * the values of variables to affect the composition. */ size(640, 360); background(0); stroke(153); strokeWeight(4); strokeCap(SQUARE); int a = 50; int b = 120; int c = 180; line(a, line(a, line(a, line(a, b, a+c, b); b+10, a+c, b+10); b+20, a+c, b+20); b+30, a+c, b+30);

a = a + c; b = height-b; line(a, line(a, line(a, line(a, b, a+c, b); b+10, a+c, b+10); b+20, a+c, b+20); b+30, a+c, b+30);

a = a + c; b = height-b; line(a, line(a, line(a, line(a, b, a+c, b); b+10, a+c, b+10); b+20, a+c, b+20); b+30, a+c, b+30);

Sign up to vote on this title
UsefulNot useful