This file contains hidden or 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
| PGraphics pg; | |
| int dim; | |
| void setup() { | |
| size(400, 400, P2D); | |
| dim = width*2; | |
| pg = createGraphics(dim, dim); | |
| pg.colorMode(HSB, 360); | |
| pg.beginDraw(); |
This file contains hidden or 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
| //description: convert one or more https://coolors.co/ URLs to color palettes | |
| //author: @vincentsijben | |
| //references: https://discourse.processing.org/t/function-to-extract-colors-from-coolors-co/28986 | |
| Palettes pal; | |
| color randomColor; | |
| void setup() { | |
| size(390, 400); |
This file contains hidden or 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
| //test met 3 arraylists | |
| ArrayList<ArrayList<ArrayList<Integer>>> mainpalettes = new ArrayList<ArrayList<ArrayList<Integer>>>(); | |
| int count =0; | |
| void setup() | |
| { | |
| for (int k = 0; k < 5; k++) { |
This file contains hidden or 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
| PShape cube; | |
| PShape cube_front; | |
| PShape cube_back; | |
| PShape cube_left; | |
| PShape cube_right; | |
| PShape cube_bottom; | |
| PShape cube_top; | |
| float w = 100; | |
| float h = 100; |
This file contains hidden or 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
| void setup() { | |
| size(1100, 500, P3D); | |
| pixelDensity(2); | |
| smooth(); | |
| textSize(40); | |
| } | |
| void draw() { | |
| background(220); |
This file contains hidden or 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
| void setup() { | |
| size(500, 500, P3D); | |
| pixelDensity(2); | |
| } | |
| void draw() { | |
| background(220); | |
| translate(width/2, height/2); | |
| noFill(); |
This file contains hidden or 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
| void setup() { | |
| size(500, 500, P3D); | |
| } | |
| void draw() { | |
| background(220); | |
| translate(width/2, height/2); | |
| noFill(); | |
| rotate(radians(frameCount)); |
This file contains hidden or 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
| //function: convert a https://coolors.co/ URL to a color array. | |
| //author: vincentsijben | |
| //source: enhanced version based on https://discourse.processing.org/t/function-to-extract-colors-from-coolors-co/28986 | |
| String url = "https://coolors.co/56a3a6-484538-cad49d-d4eac8-c0d8e0"; | |
| color[] palette; | |
| int paletteIndex = 0; | |
| void setup() { | |
| size(400, 400); |
This file contains hidden or 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 bpm = 60; | |
| float triggerValue = 0; | |
| float counter = 0; | |
| float triggerNorm = 0; | |
| float start = 0; | |
| float runtime = 0; | |
| boolean flip = false; | |
| boolean doOnce = false; | |
| int vincent = 0; |
This file contains hidden or 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
| //hit the r key when running, to start recording 40 frames and automatically exiting after recording those 40 frames | |
| // drag 'n drop the exported frames into https://ezgif.com/maker to create a .gif. | |
| int x = 0; | |
| int y = 100; | |
| int snelheid = 10; | |
| boolean record = false; | |
| int currentFrame = 0; | |
| int totalFrames = 40; |
NewerOlder