Posts

Showing posts from April, 2021

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));  } }

ART CODE 5

Image
int x = 0; int y = 0; void setup(){   size(1280, 720);   background (0); } void draw(){     rectMode(CENTER); translate(width/2,height/2); rotate(radians(frameCount));      rect(x,y, 10,700);   delay(40);         for(int i = 0; i < 20; i++) {    println(i);    fill(random(255));  rect(radians(width),random(height),i*1, i*15);  } }

ART CODE 4

Image
void setup() {   size(1280,720); frameRate(20); } void draw () {  background(#aaaaaa);  fill(0);  noStroke();  for(int i = 1; i < 100; i++) {    println(i);    fill(random(255));  ellipse(random (width),random(height),i*1, i*1);    }  }

ART CODE 3

Image
  void setup() {   size(1280,720); frameRate(10); } void draw () {  background(#aaaaaa);  fill(255);  noStroke();  for(int i = 0; i < 100; i++) {    println(i);    fill(random(255));  rect(random(width),random(height),i*1, i*1);    }  }

ART CODE 2

Image
  art code 2 void setup() {   size(1280,720); } void draw () {  background(50);  fill(255);  noStroke();  float wave = sin(radians(frameCount));  ellipse (width/2 + wave * 200, height/2, 200, 200);   }

CODE 1

Image
  void setup() {   size(1280, 720); } void draw() {   background(#f1f1f1);   fill(0);   noStroke();   rectMode(CENTER);   pushMatrix();   translate(width/2, height/2);   rotate(radians(frameCount));   rect(0, 0, 400, 400);   popMatrix();   }