Heart clock :D

edited February 2018 in Share Your Work

Look what i made (FOR FUN) is you heart OK ? Test it ! :)

int x;
float pn;
float xoff = 0.0;
void setup(){
  size(500,500);
  background(0);
}
void draw() {
  xoff = xoff + .02;
  float n = noise(xoff);
  if(xoff>=2){
    xoff=0;
  }
  println(n + " " + xoff);
  n *= height;
  stroke(255);
  line(x,pn,x,n);
  pn = n;
  x++;
  if(x>=width){
    x=0;
    background(0);
  }
}
Tagged:

Comments

Sign In or Register to comment.