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 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 4 April 18, 2021 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); } } 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