Posts

Showing posts with the label tunnel

video loops, art code 10

Image
void setup() {   size(1280, 720); } void draw() {   background(200);   fill(0);   noStroke();   rectMode(0);        fill(50);         fill(0);   pushMatrix();   translate(width/2, height/2);   rotate(random(frameCount));   rect(10, 0, 5, 5);     rect(20, 0, 5, 5);       rect(30, 0, 5, 5);         rect(40, 0, 5, 5);           rect(50, 0, 5, 5);             rect(60, 0, 500, 5);                rect(70, 10, 6, 6);                 rect(90, 20, 7, 700);             ellipse(100, 10, 2000, 5);              ellipse(100, 10, 50, 50);               ellipse(150, 100, 100, 100);      ...

video loops, art code 9

Image
color fg=0; color bg=#f1f1f1; void setup() {   size(1280, 720); } void draw() {   background(bg);   fill(fg);      for (int i = 0; i < mouseX; i++) {     push();     translate(width/2, height/2);     rotate(sin(i*200.3+(i*frameCount*0.005)));     rect(mouseX*0.002*i, 1, 200, 2);     ellipse(mouseX*0.002*i+15, 35, 6, 6);     pop();   }   translate(mouseX, mouseY); }

art code 7

Image
float amount = 3000; void setup() {   size(1280, 720);   } void draw() {   background(0);   fill(200);      translate(width/6, height/8);   for (int i = 1; i <= amount; i++) {     float y = map(i, 0, amount, height*1, -height*2);     float x = map(tan(radians((frameCount + (i*6)))), -6, 2, -width*0.4, width*0.4);     pushMatrix();     translate(x, y);     rect(-200, -100, 10, 100);      popMatrix();   }    }

video loops, art code 6

Image
int x = -10; int y = 10; void setup(){   size(1280, 720);   background (0); } void draw(){   translate(width/2,height/2);             for(int i = -160; i < 3; i++) {    println(i);    fill(random(255));  rect(radians(width),(height),i*10, i*6); rotate(radians(frameCount));  } }