ART CODE 2 Get link Facebook X Pinterest Email Other Apps April 18, 2021 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); } Get link Facebook X Pinterest Email Other Apps Comments
video loops, art code 9 April 22, 2021 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); } Read more
video loops, art code 6 April 19, 2021 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)); } } Read more
art code 12 May 01, 2021 Spot[] spots; // Declare array void setup() { size(1280, 720); int numSpots = 50; // Number of objects int dia = width/numSpots; // Calculate diameter spots = new Spot[numSpots]; // Create array for (int i = 0; i < spots.length; i++) { float x = dia + i*dia; float rate = random(1.1, 2.0); // Create each object spots[i] = new Spot(x, 200, dia, rate); } noStroke(); } void draw() { fill(0, 30); rect(0, 0, width, height); fill(#50c878); for (int i=0; i < spots.length; i++) { spots[i].move(); // Move each object spots[i].display(); // Display each object } } class Spot { float x, y; // X-coordinate, y-coordinate float diameter; // Diameter of the circle float speed; // Distance moved each frame int ... Read more
Comments
Post a Comment