Contact Me

Please leave your name and message using direct message if it’s something important. 

Even if you don’t have anything important to say, I would appreciate it if you do say something nice about me that will make my day 🙂

MY Location

Jakarta - Singapore

Im constantly travelling between these two cities. 

For any inquries please use form below

or email me at hello@yolody.com

Send Me a Message

Please leave your name and contact details and I’ll get back to you as soon as I can. Thanks.

float thold = 5; float spifac = 1.05; int outnum; float drag = 0.01; int big = 500; ball bodies[] = new ball[big]; float mX; float mY; void setup() { size(900, 450); strokeWeight(1); fill(255, 255, 255); stroke(255, 255, 255, 5); background(0, 0, 0); smooth(); for(int i = 0; i < big; i++) { bodies[i] = new ball(); } } void draw() { if(keyPressed) { saveFrame("Focus " + outnum); outnum++; } if(mousePressed) { background(0, 0, 0); mX += 0.3 * (mouseX - mX); mY += 0.3 * (mouseY - mY); } mX += 0.3 * (mouseX - mX); mY += 0.3 * (mouseY - mY); for(int i = 0; i < big; i++) { bodies[i].render(); } } class ball { float X; float Y; float Xv; float Yv; float pX; float pY; float w; ball() { X = random(screen.width); Y = random(screen.height); w = random(1 / thold, thold); } void render() { if(!mousePressed) { Xv /= spifac; Yv /= spifac; } Xv += drag * (mX - X) * w; Yv += drag * (mY - Y) * w; X += Xv; Y += Yv; line(X, Y, pX, pY); pX = X; pY = Y; } }
$WEN
0