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 / Parabolic_Hadouken_Fire.pde
Last active December 17, 2021 19:31
Some parabolic Hadouken shooting fire
//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();
}
@volfegan
volfegan / Pestis_algae.pde
Created December 13, 2021 21:48
Algae underwater floating shape
//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;
@volfegan
volfegan / abstractArtShadowsInWall.pde
Last active May 30, 2021 20:40
Procedural converging painting of some shadow+colour abstract art
//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;
@volfegan
volfegan / abstractArtBabylonTower.pde
Last active May 30, 2021 20:26
Procedural converging painting of the Babylon Tower
//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--) {
@volfegan
volfegan / Image_to_ASCII_flow.pde
Last active January 27, 2024 13:57
Maps an image into different ASCII characters gradients that sometimes form a flow
//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|()=~!-/<>\\\"^_';,:`. "
@volfegan
volfegan / Pseudo3D_TubularPerspective.pde
Created May 17, 2021 20:49
Very subtle pseudo3D tubular/cylindrical perspective effect on 2D images
//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);
@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 February 1, 2024 07: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++;