Skip to content

Instantly share code, notes, and snippets.

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;
@wonderburg7
wonderburg7 / gist:d5b04127596aa44084b7ac9d31ae6064
Created November 7, 2018 21:56
bad scrolling writing.pde
/*
* Demonstrates the use of the GifAnimation library.
* Exports a GIF-File to the sketch folder if space
* bar is pressed. Wow, feels like 90's! ;)
*/
import gifAnimation.*;
import processing.opengl.*;
GifMaker gifExport;
PImage img, img1, img2, img3, img4; // Declare a variable of type PImage
int bigdistance = 2000;
int distance = 100;
int gridpoints = (bigdistance/distance);
int picheight = 210,picwidth = 210;
String string1 = "the0tsuvi0are0slavers";
int numberofcharacters = string1.length();
int x = picwidth/2;
int y = (height/2)+(picwidth/2);
int h = 1;