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
//global variables | |
PVector e1 = new PVector(); | |
PVector e2 = new PVector(); | |
PVector e3 = new PVector(); | |
float multiplyer = 1.5; | |
float x1, x2, y1, y2; | |
float angle1 = 0, angle2 = 15; | |
float scalar = 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
PImage img1, img2, img3, img4, img5, img6, img7, img8, img9, img10, img11, img12, img13, img14, img15, img16; | |
float rotationCount = 0; | |
int countValue = 1; | |
int picSize; | |
static final color BG = -4; | |
void setup() { | |
size(800, 800); | |
frameRate(30); |
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; | |
static final color BG = -4; | |
int picSize; | |
void setup() { | |
size(500, 500); | |
// noSmooth(); | |
// ((PGraphicsOpenGL)g).textureSampling(2); |
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
/** | |
* PolygonPShapeOOP. | |
* | |
* Wrapping a PShape inside a custom class | |
* and demonstrating how we can have a multiple objects each | |
* using the same PShape. | |
*/ | |
// A list of objects |
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 i = 0, j =0, k =0, y=0, r, degreepoint = 0, d1, d2; | |
int angle1, point; | |
int radius = 300; | |
void setup() | |
{ | |
size(800, 800); | |
background(255, 254, 233); | |
noLoop(); | |
} |
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 sinLUT[]; | |
float cosLUT[]; | |
float SINCOS_PRECISION=1.0; | |
int SINCOS_LENGTH= int((360.0/SINCOS_PRECISION)); | |
// System data | |
boolean dosave=false; | |
int num; | |
float pt[]; | |
int style[]; |
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; | |
void setup() { | |
background(0,0); | |
size(640, 640); | |
noStroke(); | |
rectMode(CENTER); | |
img1 = loadImage("https://i.ibb.co/w6Vx0wp/Nehlet2-small-white.png"); | |
img2 = loadImage("https://i.ibb.co/FY0xQnG/Her-Benificence2-small-white.png"); | |
imageMode(CENTER); |
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; | |
float orbitDuration; | |
float orbitRad = 100; | |
float ang, x, y; | |
float rotationCounter = 0; | |
void setup() | |
{ | |
size(900,900); |
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
//Create the ArrayList of Waves | |
ArrayList<Wave> waves = new ArrayList<Wave>(); | |
void setup() { | |
size(800, 800); | |
//Set all ellipses to draw from the Center | |
ellipseMode(CENTER); | |
noFill(); | |
strokeWeight(2); |
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; | |
float x1, x2, y1, y2; | |
float angle1 = 0, angle2 = 15; | |
float scalar = 15; | |
int flapvalue = 1; | |
int bee = 1; | |
void setup() { | |
size(200, 120); | |
imageMode(CENTER); |