2

Islands

Entry to the JS1k 2015 coding competition by Philippe Deschaseaux procedurally generates island landscapes using an incredibly small amount of javascript. Running in your browser, the code for it to run looks like this:

for(_=’*(H1,G[p-GxF2,E],Dw/EC0,BCB0DFACy+A-@Math.  abs(S+w> sin(.01H3onkey++q[DL[I]=8|3&t+S||8Hh),c.fillRect(“+o+”,M[2]=1Style=”&&(20 cos( .push(a.widthfunction(),=T[P] random()=tD==a.whickBO5BQ=[eGR=b=N=P=BBB0DX=/EY=a.height/1.5,T=[DsetInterval(){for(m= Rn=Ri=m*k,j=n*k,K=(5- 4*R))/4,l=O/E!bN<0TB(r=8*)* t=44*r*t[4,.1D0(S=!bN%0*T[P])?(P,U,V,M,J):e=#888”o=BY-l,2*X,Y+l)L=[QDI;q=eL[—I];)t=Bpxyshw«p,0==N2==ph>10<.2T240>h?8:3Bx+Gy+G[[G4,55D[4,G100D[8BE90]][0|h/1+(18>DhSf=u=x-U)v=y-Vpf!8]qBBBF+@@Cy-A+Cy-CB0](d= sqrt(u*u+v*v))<SW=(J||+(1- pow(d/S,M[0]))*S*M[1])>h3]=s=?0|+*u/(d+1)/9:16>W?190:80+0|W/304]=W)d=k-(m*x+n*y8]!f)p>2*b+d/900)?(t=x>i^3Hy>jL[I]=8|3&t132]):h>12!Sg=m*y-n*x)<dh-Eo-so=srgb(“+os=X/dX+s*g-(w*=s*KY+s*O-(h=s*-l,w+w+Gh+);e=b},0down=a){b,O+=33-34HO>R+=9-7,k+=40-38},up=){b=0};’;g=/[- @-H]/.exec(_);)with(_.split(g))_=join(shift());eval(_)

Try it out for yourself here

3

Rhapsody in Grey

Music project from Brian Foo creates algorithmic music with recorded data of brainwaves during an epileptic seizure:

This song generates a musical sequence using EEG brain wave data of an anonymous epilepsy patient. It examines the periods before, during, and after a seizure. The goal is to give the listener an empathetic and intuitive understanding of the brain’s neural activity during a seizure.

Brian has documented the process here