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
/** | |
* Space Junk | |
* by Ira Greenberg (zoom suggestion by Danny Greenberg). | |
* | |
* Rotating cubes in space using a custom Cube class. | |
* Color controlled by light sources. Move the mouse left | |
* and right to zoom. | |
*/ | |
// Used for oveall rotation |
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
Letter letterg, lettere; | |
PImage img1, img2, img3; | |
float i = 0; | |
float j = 0; | |
float count = 0; | |
float rotationValue = 40; | |
float rotationCount = 0; | |
float rotationTest = 0; | |
int delay = 10; | |
int f; |
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 img1, img2, img3, img4, img5, img6, img7; | |
int rotationCount = 0; | |
int picSize; | |
int countValue = 1; | |
int delay = 70; | |
static final color BG = -4; | |
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
float pointNo = 30; | |
float stage = 0.0; | |
PVector point1; | |
PVector point2; | |
PVector point3; | |
PVector point4; | |
PVector point5, point6, point7, point8; | |
PVector l1mp, l2mp, l3mp, l4mp; | |
PVector l5mp, l6mp, l7mp, l8mp; |
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
//Example Characters along a curve | |
// The message to be displayed | |
String message = "Astro-Penelo Mining Corp - "; | |
PFont f; | |
// The radius of a circle | |
float r = 85; | |
int rotationCount = 0; | |
int fontSize= 40; |
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
/* | |
Date: Nov. 26th, 2017 | |
Sketch Name: Rotating Cubes | |
Auther: Kokorin | |
*/ | |
int len = 50; // possible to change less than 150 | |
int cubes = 3; // numbers of cubes on a side | |
int step = len / (cubes - 1); // interval cubes | |
float angle = 0; |
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 px = 300; | |
int py = 300; | |
int lar = 100; | |
int alt = 100; | |
int ang = 1; | |
int ang2 = 1; | |
int ang3 = 1; | |
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
PImage img; | |
float transparencyValue; | |
void setup() { | |
size(200, 200); | |
img = loadImage( "https://i.imgur.com/vpFQBfR.png" ); | |
img.resize(width, height); | |
} | |
void draw() { |
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 xspacing = 32; // How far apart should each horizontal location be spaced | |
int w; // Width of entire wave | |
float theta = 0.0; // Start angle at 0 | |
float amplitude = 150.0; // Height of wave | |
float period = 500.0; // How many pixels before the wave repeats | |
float dx; // Value for incrementing X, a function of period and xspacing | |
float[] yvalues; // Using an array to store height values for the wave | |
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
FlowField flowfield; | |
ArrayList<Particle> particles; | |
int lineSize = 2; | |
int noOfParticles = 1000; | |
float rateOfGridChangeOverTime = 0.0004; | |
int minSpeed = 1; | |
int maxSpeed = 3; | |
int lineAlpha = 10; |