aho_04_variables2.pde
size(300,300);
background(100,100,100);
ellipseMode(CENTER_DIAMETER);
float x1,y1,x2,y2,x3,y3,x4,y4;
x1=50;
y1=50;
x2=250;
y2=50;
x3=250;
y3=250;
x4=150;
y4=150;
stroke(255);
bezier(x1,y1,
x2,y2,
x3,y3,
x4,y4);
line(x1,y1, x2,y2);
line(x4,y4, x3,y3);
|