Skip to content

Instantly share code, notes, and snippets.

// Creating an array of objects.
int oldx;
int oldy;
Mover[] movers = new Mover[400];
void setup() {
size(1000,250);
strokeWeight(2);
strokeJoin(ROUND);
float turtleX;
float turtleY;
float turtleHeading = 0;
int numberofshapes = 200;
float sides = 3;
float angle;
float length = 50;
void setup() {
size(1000, 1000);
void setup() {
size(4000, 4000);
background(102);
// background(0);
strokeWeight(12);
}
void draw() {
pushMatrix();
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 = 210,picwidth = 210;
void setup() {
int gridpoints = 10;
int height = 4000;
int width = 4000;
int distance = (height/gridpoints);
int x = distance;
int y = distance;
int size = 250;
void setup() {
size(4000, 4000);
PImage img; // Declare a variable of type PImage
int x = 0;
int y = 0;
int bigdistance = 2000;
int distance = 100;
int gridpoints = (bigdistance/distance);
void setup() {
size(2000,2000);
background(0);
int x, y;
int numberofcircles = 4000;
void setup() {
size(4000, 4000);
background(0);
ellipseMode(CENTER);
//strokeWeight(0);
PImage img; // Declare a variable of type PImage
int x = 0;
int y = 0;
int bigdistance = 2000;
int distance = 100;
int gridpoints = (bigdistance/distance);
void setup() {
size(2000,2000);
background(0);
PImage img, img1, img2, img3, img4; // Declare a variable of type PImage
int x = 0;
int y = 0;
int bigdistance = 4000;
int distance = 400;
int gridpoints = (bigdistance/distance);
int picheight = int(429/1.5),picwidth = 0;
int counter = 1;
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;