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 / Neco_ Arc.txt
Created October 9, 2022 18:34
Neco Arc ASCII art
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡔⣻⠁⠀⢀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢀⣾⠳⢶⣦⠤⣀⠀⠀⠀⠀⠀⠀⠀⣾⢀⡇⡴⠋⣀⠴⣊⣩⣤⠶⠞⢹⣄⠀⠀⠀
⠀⠀⠀⠀⢸⠀⠀⢠⠈⠙⠢⣙⠲⢤⠤⠤⠀⠒⠳⡄⣿⢀⠾⠓⢋⠅⠛⠉⠉⠝⠀⠼⠀⠀⠀
⠀⠀⠀⠀⢸⠀⢰⡀⠁⠀⠀⠈⠑⠦⡀⠀⠀⠀⠀⠈⠺⢿⣂⠀⠉⠐⠲⡤⣄⢉⠝⢸⠀⠀⠀
⠀⠀⠀⠀⢸⠀⢀⡹⠆⠀⠀⠀⠀⡠⠃⠀⠀⠀⠀⠀⠀⠀⠉⠙⠲⣄⠀⠀⠙⣷⡄⢸⠀⠀⠀
⠀⠀⠀⠀⢸⡀⠙⠂⢠⠀⠀⡠⠊⠀⠀⠀⠀⢠⠀⠀⠀⠀⠘⠄⠀⠀⠑⢦⣔⠀⢡⡸⠀⠀⠀
⠀⠀⠀⠀⢀⣧⠀⢀⡧⣴⠯⡀⠀⠀⠀⠀⠀⡎⠀⠀⠀⠀⠀⢸⡠⠔⠈⠁⠙⡗⡤⣷⡀⠀⠀
⠀⠀⠀⠀⡜⠈⠚⠁⣬⠓⠒⢼⠅⠀⠀⠀⣠⡇⠀⠀⠀⠀⠀⠀⣧⠀⠀⠀⡀⢹⠀⠸⡄⠀⠀
⠀⠀⠀⡸⠀⠀⠀⠘⢸⢀⠐⢃⠀⠀⠀⡰⠋⡇⠀⠀⠀⢠⠀⠀⡿⣆⠀⠀⣧⡈⡇⠆⢻⠀⠀
⠀⠀⢰⠃⠀⠀⢀⡇⠼⠉⠀⢸⡤⠤⣶⡖⠒⠺⢄⡀⢀⠎⡆⣸⣥⠬⠧⢴⣿⠉⠁⠸⡀⣇⠀
@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 / 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_time_crystals.pde
Last active July 7, 2022 17:38
Pseudo 3D green crystals made of 2 layers of moving hexagon tiling
//references: https://www.bit-101.com/blog/2019/01/perlinized-hexagons/
//https://www.redblobgames.com/grids/hexagons/
//https://www.youtube.com/watch?v=XSj0SAuiymI
float t;
void setup() {
size(1280, 720);
//stroke(0, 255, 0);
noStroke();
}
@volfegan
volfegan / Ghost_fog_XOR_plasma.pde
Created June 3, 2022 23:20
Eerie plasma fog in XOR landscape
//remix of https://www.youtube.com/watch?v=R-8fEyod3fw
//https://github.com/leonardo-ono/JavaOldPlasmaEffectTest/blob/master/src/oldplasmaeffecttest/OldPlasmaEffectTestPanel.java
float t;
void setup() {
size(1280, 720);
colorMode(HSB, 255, 255, 255);
noStroke();
}
void draw() {
@volfegan
volfegan / Liquid_Metal.pde
Last active June 1, 2022 20:48
Moving liquid metal texture with some semi-static spiral structures in between
//remix https://twitter.com/Hau_kun/status/1531248367678144513
float A,t;
void setup() {
size(1280, 720);
noStroke();
}
void draw() {
clear();
t+=.02;
@volfegan
volfegan / tanX_tanY_gt_sinXY.pde
Last active May 28, 2022 10:10
Some nice shape from the inequality: tan(x)*tan(y) > sin(x*y)
//remix https://www.dwitter.net/d/23922
float t;
void setup() {
size(1280, 720);
noStroke();
fill(-1);
clear();
}
void draw() {
translate(width/2, height/2);
@volfegan
volfegan / Ocean_waves_XOR.pde
Last active May 27, 2022 18:20
High altitude view of some 8bit XOR blue ocean waves
//remix https://www.dwitter.net/d/23922
float a, b, d, m, r, w, z, t, X, Y;
void setup() {
size(1280, 720);
noStroke();
fill(0,128,255);
}
void draw() {
background(-1);
t+=.02;
@volfegan
volfegan / ImageDigitalQuantumWarp.pde
Last active May 9, 2022 02:42
Glitch effect for images warping from one side of the screen to another
//reference https://timrodenbroeker.de/processing-tutorial-kinetic-typography-1/
//https://github.com/timrodenbroeker/tutorials/blob/master/2019/002_Processing_Kinetic_Typography/TUTORIAL/
//https://twitter.com/inaba_darkfox/status/1523319283157467136
PImage img;
void settings() {
img=loadImage("cat.jpg");
size(img.width, img.height, P2D);
println("w="+img.width+", h="+img.height);
}
@volfegan
volfegan / Ilumination_2DNormal_mapping.pde
Last active April 30, 2022 04:53
Pseudo 3D Illumination effect using 2D normal map images
//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