This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x, y; | |
int numberOfArcs = 20;//int(random(100)); | |
float rotation = - (HALF_PI / random(0, 2)); //(HALF_PI / 3); | |
int arcSize; | |
int step = 180; | |
float start, stop; | |
int strokeSize = 15; | |
void setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int rectno = 4000; | |
int height = 4000; | |
int width = 4000; | |
int width2 = 210; | |
float height2 = (width2*1.618033); | |
int x; | |
int y; | |
color colour1; | |
int coin2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PImage img, img1, img2, img3, img4; // Declare a variable of type PImage | |
int x = 0; | |
int y = 0; | |
int bigdistance = 2000; | |
int distance = 200; | |
int gridpoints = (bigdistance/distance); | |
int picheight = 400,picwidth = 400; | |
int glovenumber = 700; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float turtleX; | |
float turtleY; | |
float turtleHeading = 0; | |
int numberofshapes = 8; | |
float sides = 3; | |
float angle; | |
float length = 200; | |
void setup() { | |
size(1000, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float turtleX; | |
float turtleY; | |
float turtleHeading = 0; | |
int numberofsquares = 2000; | |
void setup() { | |
size(1000, 1000); | |
turtleX = width/2; | |
turtleY = height/2; | |
background(64); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creating an array of objects. | |
int oldx; | |
int oldy; | |
boolean recording = false; | |
Mover[] movers = new Mover[400]; | |
void setup() { | |
size(600,600); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int edgedistance = 400; | |
int gridpoints = 10; | |
int griddistance = (4000-400-400)/gridpoints; | |
int x1 = 4000 - edgedistance; | |
int y1 = edgedistance; | |
int x2 = edgedistance; | |
int y2 = edgedistance+griddistance; | |
void setup() { | |
size(4000,4000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int littledistance = 200; | |
int bigdistance = int(littledistance*1.618); | |
void setup() { | |
size(1000, 1000); | |
smooth(); | |
background(108); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PImage img, img1, img2, img3, img4, img5, img6, img7, img8, img9; // Declare a variable of type PImage | |
int x = 0; | |
int y = 0; | |
int bigdistance = 4000; | |
int distance = 400; | |
int gridpoints = (bigdistance/distance); | |
int picheight = 421,picwidth = 0; | |
int counter = 1; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//from youtube video https://www.youtube.com/watch?v=le6t-kpXFZ4 | |
float inc = 0.8; | |
float scl = 5; | |
int xcols, yrows; | |
Particle[] parts = new Particle[3000]; | |
PVector[] flowField; | |
PVector prePos = new PVector(random(width), random(height)); | |
int h = 1; |