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 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
/* | |
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
//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
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
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
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
/** | |
* 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
Rain r1; | |
PImage img1, img2, img3, img4, img5, img6, img7, img8, img9, img10, img11, img12, img13, img14, img15, img16, img17, img18, img19, img20, img21, img22, img23, img24, img25, img26, img27, img28, img29, img30, img31, img32, img33, img34, img35, img36; | |
int dice; | |
int speed; | |
int numDrops = 40; | |
Rain[] drops = new Rain[numDrops]; // Declare and create the array | |
void setup() { | |
size(1200,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 img1, img2, img3; | |
int rotationCount = 0; | |
int picSize; | |
static final color BG = -4; | |
void setup() { | |
size(500, 500, P3D); | |
// noSmooth(); | |
// ((PGraphicsOpenGL)g).textureSampling(2); | |
img1 = loadImage("https://i.imgur.com/qNr33dN.png"); |