A tiny windy tree by @tomx0r and me! 💨🌳
https://t.co/LyqjlzqViG #javascript
f=(X,Y,Z,A)=>x.fillRect(X,Y,w=Z<.3?4*Z:Z,w,Z>.2&&f(X+Z*S(A),Y-Z*C(A),Z*.95,A+C(9*t/Z+n/Z+2*t+2*n)/Z/8),Z*3%1>.8&&f(X,Y,Z*.8,A+9*Z%2-1,n++),x.fillStyle=`#${6*Z<<5}`);c.width=320;f(160,200,11,n=0)
Trace program https://t.co/BH5fuypgaZ #javascript#TheMatrix#demo
for(c.width=640-20*t,https://t.co/czysiDVI0O.filter='invert(',i=2e3;i--;x.fillText('0623419587'[X%10]<t/3-1?'3125550690'[i]||'':Y?d%10:'',X*12-2*t,++Y*12))X=i&63,x.fillStyle=R(d=t*3840-i|0,Y=i>>6,d,X*d/99%1+.4)
for(c.width&=i=10386;i--;x.fillRect(X=i&127,Y=i>>7,1,!f(64)|!f(32,Y=X,X=i>>7)))f=s=>Math.round((q=(X&120)-s)/(1+1e4**S(t+q%7)**7))+Y&7
https://t.co/gCEkBuaF8N
Based on https://t.co/YqxBwhMsPi by Pavel
Based on by @beesandbombs
#hackernews Avatars in 357 bytes
Deterministic avatar generator from username seeds with an xorshift32. Generative concepts used were inspired by and derived from dweets from @KilledByAPixel
https://t.co/ujkLM4LBGs
The viewport is a non-recursive ray-march the same way as in the minecraft dweet, the only difference is rather than painting with distance, it uses the same voxel addressing to retrieve the current lighting values... this is all rolled into a single loop of course 😉
Real-time, ray-marched, 3D global illumination... on a single CPU... in JS... in 320 bytes... Too big for Dwitter, but I'm still pretty happy with the results:
The lighting is forward ray-marched, starting with a pseudo random unit vector from a source. Upon intersection, intensity is added to the the closest voxel address on an object. It marches back once to ensure the next ray has full range, gets a new unit vector, and recurses.