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
//Selects a normal map image with naming convection: image_normal.xxx | |
//Tries to find the original image (image.xxx) by removing "_normal" if any exists. | |
//References: | |
//https://en.wikipedia.org/wiki/Normal_mapping | |
//https://github.com/leonardo-ono/Java2DNormalMapEffectTest/blob/main/src/Test.java | |
//https://learnopengl.com/Advanced-Lighting/Normal-Mapping | |
//https://ogldev.org/www/tutorial26/tutorial26.html |
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
//Reference: | |
//https://www.youtube.com/watch?v=cLkORfzQPEU | |
//https://github.com/leonardo-ono/Java2DIntegrationDisintegrationEffectTest/blob/main/src/Test.java | |
float flowValue=350;//354~255 (display full image), -54~Zero (no image) | |
float flowDirection=-1;//1 (re-creating) or -1 (burning/dissolving) | |
float[][] flowMap; //2D map of brightness on how to proceed the dissolving effect | |
PImage source; |
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
//References: | |
//https://www.dwitter.net/d/11965 | |
//https://www.dwitter.net/d/11981 | |
float t; | |
void setup() { | |
size(1280, 720); | |
noStroke(); | |
fill(0, 255, 0); | |
} | |
void draw() { |
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 for GJK algorithm collision detection | |
* @author Volfegan Geist [Daniel Leite Lacerda] | |
* https://github.com/volfegan/GeometricAlgorithms | |
*/ | |
/* | |
//Resources: | |
//https://www.youtube.com/watch?v=ajv46BSqcK4 | |
//https://github.com/kroitor/gjk.c | |
//https://observablehq.com/@esperanc/2d-gjk-and-epa-algorithms | |
//https://en.wikipedia.org/wiki/Gilbert%E2%80%93Johnson%E2%80%93Keerthi_distance_algorithm |
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
//https://www.youtube.com/watch?v=PqW1GOrVMS0 | |
//https://www.dwitter.net/d/24463 | |
//https://www.dwitter.net/d/24467 | |
float d, t, beam, spread_wave=0; | |
void setup() { | |
size(1280, 720); | |
stroke(255); | |
noStroke(); | |
clear(); | |
} |
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
//https://www.youtube.com/watch?v=oeJd53nj7lk | |
float t, x, y, w; | |
void setup() { | |
size(1080, 480); | |
stroke(255); | |
fill(255); | |
} | |
void draw() { | |
clear(); | |
t+=.1; |
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
//reference https://www.dwitter.net/d/22420 | |
float f, k, t, w, X, Y; | |
void setup() { | |
size(1280, 720); | |
colorMode(HSB,360,255,255); | |
noStroke(); | |
clear(); | |
} | |
void draw() { | |
t+=.005; |
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
//remix of https://www.dwitter.net/d/22529 | |
float f, h, k, p, q, t, X, Y; | |
void setup() { | |
size(1280, 720); | |
noStroke(); | |
background(-1); | |
} | |
void draw() { | |
t+=.005; | |
for (float i=720; i>0; i--) { |
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
//References | |
//Font: http://laemeur.sdf.org/fonts/ | |
//http://paulbourke.net/dataformats/asciiart/ | |
//https://youtu.be/AGR3sfOq2qc?t=5911 | |
//Related | |
//https://github.com/odditica/ProcessingStuff/blob/master/ItsTerminal/ItsTerminal.pde | |
//https://github.com/JaceyPenny/ASCIIToImage/blob/master/Main.java | |
//ASCII gradient references | |
//"@MBHENR#KWXDFPQASUZbdehx*8Gm&04LOVYkpq5Tagns69owz$CIu23Jcfry%1v7l+it[] {}?j|()=~!-/<>\\\"^_';,:`. " |
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
//Reference: | |
//https://www.youtube.com/watch?v=E5hFPQrN_o4 | |
//https://github.com/leonardo-ono/Java2DKriptokHorizontalBackgroundScrollTest/blob/master/src/View.java | |
float dx, dy; //direction of movement x, y | |
PImage img; | |
float[][] tubular; | |
void setup() { | |
size(1280, 720); |