Ten Lines

Yeah I know this one’s kind of lame too, I tried to do something else and it didn’t do what I wanted but I ran out of a) time and b) patience.

tenlines

I was attempting to get the lines to all rotate independently depending on the movement of the mouse but it didn’t work and ended up rotating them all as a massive chunk together. So I goofed around a little and made it so that all the lines move according to the X position of the mouse, but only the bottom five also react to the Y position. It’s a little pointless and not very elegant or interesting sorry.

void setup(){
  size(300,300);
  background(0);
  stroke(255);
  strokeWeight(2);
}

void draw(){
  background(0,0,0);
  rotate(PI/mouseX);
    line(30,30, 50,30);
    line(50,50, 70,50);
    line(70,70, 90,70);
    line(90,90, 110,90);
    line(110,110, 130,110);
    
  rotate(PI/mouseY+100);
    line(130,130, 150,130);
    line(150,150, 170,150);
    line(170,170, 190,170);
    line(190,190, 210,190);
    line(210,210, 230,210);  
  
}

Comments are closed.