int a;
float b;
void setup() {
size(300, 300);
}
void draw() {
background(255);
a = 0;
b = 0.0;
while (a < 300) {
stroke(b*20, 0, 0);
strokeWeight(b);
point(a, 150);
a = a + 50;
b = b + 2.55;
}
}
You should provide the text below when attributing this sketch:
"While-Loop"
by
melbo, licensed under Creative Commons Attribution-Share Alike 3.0 and GNU GPL license.
Work: http://openprocessing.org/visuals/?visualID=
62653
License:
http://creativecommons.org/licenses/by-sa/3.0/
http://creativecommons.org/licenses/GPL/2.0/