Skip to content

Instantly share code, notes, and snippets.

View volfegan's full-sized avatar
💭
Still Operational

Daniel Leite Lacerda volfegan

💭
Still Operational
View GitHub Profile
@volfegan
volfegan / Classic8bitBackgroundEffects.pde
Created May 14, 2021 20:56
8bit background effects like waterfall, lava, XOR mesh/grid/munching squares
//inspired from Flopine's 8bit demoscene code
//https://www.youtube.com/watch?v=_JQm46HuDEE
float t;
void setup() {
size(1280, 720);
colorMode(HSB);
noStroke();
clear();
}
int mode = 0; //spacebar for mode change
@volfegan
volfegan / pseudo3D_tunnel_effect.pde
Last active July 16, 2024 01:37
Pseudo3D 8bit tunnel effect created by logical operators insanity
//inspired by Orbital Decay's 8bit demoscene code
//https://www.youtube.com/watch?v=VP0wOxSAH38
int t;
void setup() {
size(1280, 720);
colorMode(HSB);
noStroke();
clear();
}
int mode = 0; //spacebar for mode change
@volfegan
volfegan / LogicalMandalaOverflow.pde
Last active May 2, 2021 22:10
A mandala made from OR triangles overflow from the centre in a XOR munching square landscape
//inspired from Flopine 8bit demoscene code
//https://www.youtube.com/watch?v=_JQm46HuDEE
int f=1,t,u,v,x,y;
void setup() {
size(1280, 720);
colorMode(HSB);
noStroke();
clear();
}
void draw() {
@volfegan
volfegan / Metaball_Plasma_Field.pde
Last active May 2, 2021 02:49
Generates a looping pseudo-Metaball Plasma Field
//Reference: https://www.dwitter.net/d/5321
float t;
float[][] field;
int rez = 15;
int cols, rows;
int colourMode = 0; //0. Smooth, 1. Geometric imperfect artifacts
void keyPressed() {
if (key == 'M' || key == 'm') {
colourMode++;
@volfegan
volfegan / Basic_metaballs.pde
Created April 19, 2021 22:38
Basic implementations of colour metaballs and meta-diamonds
//Reference
//Coding Train: https://youtu.be/ccYLb7cLB1I
//https://github.com/CodingTrain/website/tree/main/CodingChallenges/CC_028_MetaBalls/Processing/CC_028_MetaBalls
//https://www.gamedev.net/articles/programming/graphics/exploring-metaballs-and-isosurfaces-in-2d-r2556/
Blob[] blobs = new Blob[20];
float min=1;
void setup() {
size(720, 360);
@volfegan
volfegan / Twister_bicolour.pde
Last active May 27, 2021 23:19
Simple pseudo3D twister effect in vertical bar with 2 colours
//https://www.dwitter.net/d/20135
//https://democyclopedia.wordpress.com/2015/11/29/t-comme-twister/
//more info:
//http://eab.abime.net/showthread.php?t=59865&page=5
float b, d, n, m, r, t;
void setup() {
size(1280, 720);
noStroke();
}
void draw() {
@volfegan
volfegan / retroDigitalFish.pde
Last active April 8, 2021 02:54
Vaporwave/Retrowave aesthetics with a floating Fish
//references
//https://www.dwitter.net/d/1829
//https://twitter.com/i_bri/status/1378588143931260930
float l, r, t=0;
void setup() {
size(1280, 720);
stroke(0, 255, 0);
noFill();
}
void draw() {
@volfegan
volfegan / WaterRipple.pde
Created April 3, 2021 03:04
2D Water Ripples effect + image underwater wobbling
//2D Water Ripples references
//Coding Train https://youtu.be/BZUdGqeOD0w
//https://github.com/CodingTrain/website/tree/main/CodingChallenges/CC_102_WaterRipples/Processing
//https://web.archive.org/web/20160418004149/http://freespace.virgin.net/hugo.elias/graphics/x_water.htm
//A very convulated version that don't use 2D arrays, that I tried to understand
//http://agilerepose.weebly.com/water-ripple.html
//Underwater Oscillation effect
//https://twitter.com/stexxs/status/1250501679318999040
@volfegan
volfegan / abstractArtDichotomyOfCirclesPainting.pde
Created April 1, 2021 03:20
Generates an abstract paint of 2 colorful tangent circles
//based from https://www.dwitter.net/d/22303
float f, k,q, t, w, X, Y;
void setup() {
size(1280, 720);
noStroke();
clear();
}
void draw() {
t+=.01;
for (float i=1024,k=i/2; i>0; i--) {
@volfegan
volfegan / XOR_operator_fire.pde
Created March 28, 2021 18:31
Minimal code for screen on fire effect. Mainly due to XOR, bitwise, modulus operators.
//based from https://www.dwitter.net/d/21877
float m, t, w=32, X, Y;
void setup() {
size(1280, 720);
noStroke();
}
void draw() {
t+=.1;
fill(0, 2);
rect(0, 0, width, height);