Ref­r­e­s­h­e­r 2.0

by Harrison McEwen

Added HSB color mode as a cheap trick to add color to this sketch

  • Show Code
/**@peep sketch */
 
 
float counter;
float wiggler;
 
void setup() {
 
size(500,500);
 
counter = -50;
wiggler = 0;
 
colorMode(HSB);
 
strokeWeight(0.5);
 
}
 
void draw() {
 
 
 stroke(counter/2,255,255,255);
 noFill();
 ellipse(width/2+wiggler, counter, 100,100);
 
 //X axis Movement
 wiggler = sin(counter*0.05)*20;
 
 //Y axis movement
 if (counter < height+50) {
   counter++
 } else { 
   counter = -50;
 }
 
  //Fader
  noStroke();
 fill(255,0,255,15);
 rect(0,0,width,height);
 
}

Comments

Nobody has said anything yet.