Skip to content

Instantly share code, notes, and snippets.

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()
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;
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;
float turtleX;
float turtleY;
float turtleHeading = 0;
int numberofshapes = 8;
float sides = 3;
float angle;
float length = 200;
void setup() {
size(1000, 1000);
float turtleX;
float turtleY;
float turtleHeading = 0;
int numberofsquares = 2000;
void setup() {
size(1000, 1000);
turtleX = width/2;
turtleY = height/2;
background(64);
// Creating an array of objects.
int oldx;
int oldy;
boolean recording = false;
Mover[] movers = new Mover[400];
void setup() {
size(600,600);
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);
int littledistance = 200;
int bigdistance = int(littledistance*1.618);
void setup() {
size(1000, 1000);
smooth();
background(108);
}
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() {
//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;