/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.hi4lP2PghBT/rev.419
*
* authors:
* xapu
*
* Ari Bader-Natal
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// NEW! See this as a Sketchcast at http://studio.sketchpad.cc/sp/pad/view/ro.9KPxftbkKN$2Z/latest?soundcloud_url=http://soundcloud.com/aribadernatal/sketchcast_1342117029538
/*
Sketchcast demo
* Pause playback at any point to open an editable copy of that revision (link at upper-right)
* Navigate through the history of this sketch either with the revision slider or with the soundcloud audio slider.
* Record your own sketchcast from the link in the header of any sketchpad that you're creating.
*/
int i=0;
void setup() { // this is run once, initially.
// canvas size
size(400,200);
// background color (0 is black, 255 is white)
background(255);
// line width
strokeWeight(12);
// frames per second
frameRate(15);
}
void draw() { // this is run repeatedly
// line color
stroke(random(50), random(255), random(255), 100);
// draw the line
line(i,0, random(0,width), height);
// loop when finished.
if (i<width) {
i++;
} else {
i=0;
}
}