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
// | |
// Triangles in triangles in triangles in triangles… | |
// Created using Processing 3.5.3. | |
// | |
// Code by @marcedwards from @bjango. | |
// | |
// A GIF of this code can be seen here: | |
// https://dribbble.com/shots/6539126-Triangles-in-triangles | |
// |
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
// | |
// Perlin noise text displacement. | |
// Created using Processing 3.5.3. | |
// | |
// Code by @marcedwards from @bjango. | |
// | |
PGraphics textbuffer; | |
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
// | |
// Some sine wave timing fun, using 2 or 3 sections with separate ease-in-out curves. | |
// Created using Processing 3.5.3. | |
// | |
// Code by @marcedwards from @bjango. | |
// | |
void setup() { | |
size(400, 400, P2D); | |
frameRate(60); |
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
// A sin-y, wobbly, twisty, 3D-looking thing that slices up an image to create its effect. | |
// For more information and to download the image required, visit: | |
// https://dribbble.com/shots/5843126-Twisty-3D-effect-using-a-2D-image | |
// | |
// Place the image inside a folder called “data” alongside the Processing sketch for it to work. | |
// Created using Processing 3.4. | |
// | |
// Code by @marcedwards from @bjango. | |
PImage twist; |
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
// OLED black smearing test for Processing 3.4. | |
// Black smearing = changing pixels to and from pure black is slower than changing to and from other colours. | |
// | |
// Code by @marcedwards from @bjango. | |
void setup() { | |
size(360, 360, P2D); | |
frameRate(60); | |
smooth(8); | |
noStroke(); |
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
// An attempt at recreating the intro to MKBHD’s awesome videos. | |
// MKBHD’s videos can be seen here: https://www.youtube.com/marquesbrownlee | |
// A GIF of the result can be seen here: https://i.imgur.com/EAfI0uJ.gif | |
// | |
// Code by @marcedwards from @bjango. | |
float n1 = 0; | |
float n2 = 0; | |
float ease = 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
// A colourful loading spinner. | |
// By @marcedwards from @bjango. | |
void setup() { | |
size(512, 512, P2D); | |
frameRate(30); | |
smooth(8); | |
noFill(); | |
strokeWeight(10); | |
} |
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
// A loading spinner. | |
// By @marcedwards from @bjango. | |
void setup() { | |
size(300, 300, P2D); | |
frameRate(30); | |
smooth(8); | |
noFill(); | |
stroke(255); | |
strokeWeight(6); |
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
// A counter that displays seconds and 100ths of a second. | |
// By @marcedwards from @bjango. | |
// | |
// You’ll need to use Tools › Create Font to convert a font file to a Processing .vlw file. | |
// Created using Processing 3.3.7. | |
PFont font; | |
float time = 0; | |
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
// A loading spinner with 6 dots. | |
// By @marcedwards from @bjango. | |
// | |
// Pretty messy and hacked together, but it works. ¯\_(ツ)_/¯ | |
// Created using Processing 3.3.7. | |
float scaler = 0.24 * 4; // Scale the entire design. | |
float scalerb = 4; // Scale the entire design more. | |
int frame = 0; |