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_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 / 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
@volfegan
volfegan / Dissolving_image_effect.pde
Last active April 25, 2022 03:47
A burn/dissolving image effect that flows using either a 2D noise map or some image pixel brightness
//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;
@volfegan
volfegan / Pseudo3D_floating_spheres.pde
Created April 21, 2022 21:14
Oldschool pseudo3D floating spheres
//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() {
@volfegan
volfegan / GJK_algorithm.pde
Last active April 15, 2022 20:56
GJK algorithm for a simple 2D collision detection (Processing)
/* 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