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 / circlesTunnelPerfectSpiral.pde
Last active December 28, 2019 03:09
Circles in Circles moving creates a perfect spiral
//reference code for solution of perfect Spiral:
//https://gist.github.com/chandeeland/b69156115e2b5842d83ca9eb3b2bbf2e
//failed trial:: https://gist.github.com/volfegan/e55decad6814e63fb450379c9bf13a61
//attempt to recreate: https://twitter.com/Borrachas/status/1204855395006763009
float a, b, x, y, d, h=600/2, r, s, shrink=0.94;
void setup() {
size(600, 600);
}
void draw() {
background(#EFF2D0);
@volfegan
volfegan / digitalRoad.pde
Created December 28, 2019 03:08
Floating road of binary traffic animation
//based on: https://twitter.com/ntsutae/status/1209356755433443331
float C=0, D, W=720, sizeText=18, x, y, X;
long t;
char binary, b0 = '0', b1 = '1';
PFont font;
void setup() {
size(720, 720);
//printArray(PFont.list());
font = createFont("Calibri", sizeText);//Calibri; Candara; Malgun Gothic; Monospaced.plain; Ubuntu Mono;
textFont(font);
@volfegan
volfegan / digitalRoad2.pde
Last active April 7, 2021 03:38
Floating road of binary traffic animation v2.0
//based on: https://twitter.com/ntsutae/status/1209356755433443331
import java.lang.StringBuilder;
import java.util.*;
float C=0, D, W=720, sizeText=18, x, y, X;
char binary;
PFont font;
void setup() {
size(720, 720);
//printArray(PFont.list());
font = createFont("Calibri", sizeText);//Calibri; Candara; Malgun Gothic; Monospaced.plain; Ubuntu Mono;
@volfegan
volfegan / RainbowHeartLines.pde
Last active January 9, 2020 23:10
Heart curve created by colourful lines
//based on https://www.openprocessing.org/sketch/816944
//somewhat inspired by https://codepen.io/al-ro/pen/BaaBage?editors=1010
//resources http://mathworld.wolfram.com/HeartCurve.html
ArrayList<Node> arrayNodes = new ArrayList<Node>();
float scaleDiv = 50; //scale the size of the heart
void setup() {
size(720, 720);
colorMode(HSB, 100);
strokeWeight(2);
translate(width/2, height/2);
//https://twitter.com/ntsutae/status/1216186934172585984
float C=0, W=640, d, i;
boolean saveFrames = true;
//https://processing.org/examples/toroid.html
int segments = 32;
int pts = 32;
float angle = 0;
float radius = W/6;
float latheAngle = 0;
//based on https://twitter.com/ntsutae/status/1216012181415714819
float C=0, M, W=720;
void setup() {
size(720, 720);
stroke(255);
M=W/17;
}
void draw() {
clear();
background(0);
@volfegan
volfegan / scanning3Ddata.pde
Created January 27, 2020 02:07
This is how I imagine databases search for a query. Scanning data on multidimensional locations
//based on https://twitter.com/ntsutae/status/1220199448891944963
float C=0, W=720;
float S=.25; //speed
void setup() {
size(720, 720, P3D);
}
void draw() {
clear();
C+=S;
translate(W/2,W/2);
@volfegan
volfegan / Kahrzdn_snowGlobe.pde
Created February 5, 2020 04:07
Java port from Kahrzdn Javascript version of a snow globe shaking and snowing.
//https://twitter.com/Kahrzdn/status/1224791864940908546
float c=0, d, y, W=720;
void setup() {
size(720, 720);
}
void draw() {
fill(0);
if (c++%W<40) d=c*W%57;
else d = 0;
circle(W/2, W/2+d, W);
@volfegan
volfegan / RIP.txt
Created February 7, 2020 00:21
RIP ASCII art
_______-|-_______
________|________
____.-'~~~`-.____
:__.':::::::`.___
:__|:R::I::P:|___
:__|:::::::::|___
:__|:::::::::|___
:\\|:::::::::|//_
^^^^^^^^^^^^^^^^^^
@volfegan
volfegan / InfiniteHeartCurveLoop.pde
Last active September 22, 2021 05:32
Infinite Heart curve loop
//http://mathworld.wolfram.com/HeartCurve.html
float a=0; //angle
float x, y;
float scaleDiv = 40; //scale divisor for the size of the heart
void setup() {
size(720, 720);
colorMode(HSB, 360);
background(0);
noStroke();
}