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; |
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
/* | |
* 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; |
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 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; |