Files
processing4/java/examples/Basics/Data/Variables/Variables.pde
Casey Reas b99624cdb4
2011-09-05 23:20:15 +00:00

26 lines
340 B
Plaintext

/**
* Variables.
*
* Variables are used for storing values. In this example, change
* the values of variables 'a' and 'b' to affect the composition.
*/
size(640, 360);
background(0);
stroke(153);
strokeWeight(2);
int a = 60;
int b = 100;
int c = 200;
int d = 120;
line(a, b, a+c, b);
a += 100;
b += 50;
line(a, b, a+c, b);