<body onload=setInterval("S=Math.sin;with(R.getContext('2d'))for(fillRect(0,0,300,150,drawImage(R,9,2,282,148,0,3,300,150),fillStyle='rgba(99,0,42,.01)'),a+=x=88;x--;fillRect(x*4,75+S(a+x/27+S(x/9)*S(a*2-x/15))*20,4,3))fillStyle='#c60'",a=9)><canvas id=R>
The landscape is a simple curve rendered with a zoom blur. It is not a voxel landscape like in the original MARS 4Kb intro but conceptually the effect is exactly a landscape rendered in perspective.
Other recent experiments
There are many experiments and projects like MARS LANDSCAPE to discover other here.
- CODING⬢ART AT SCRIPT'17
- JS1K 2017 INVITATION
- ART×JS AT FFCONF
- TILT SHIFT
- MANDELBROT TRACER
Don't be shy; get in touch by mail, twitter, github, linkedin or pouet if you have any questions, feedback, speaking or performance opportunity.