BallDroppings
WallSwaps
Trent Walton
Román Cortés
For the latest editon of Js1k contest (a contest to create something cool with only 1 kilobyte of Javascript), I’ve submitted an entry with a furry bee with springy antennae and my tie. Check it here. I’ve been pushing the limits of what is possible to render with canvas 2d. Rendering fur For rendering the fur, I’ve used the same method as I previously used in the Christmas Tree I made for a previous js1k edition. For this entry I’ve enhanced and reduced in code size the sprite generation method used in the Christmas Tree, also making it better suited for fur. Color palette Creating a nice color palette with the 1kb limitations of js1k is not an easy task. This piece of code is generating the palette, including the grays needed for the tie: ‘hsla(’+[(j&15)*8-x,(j&15)*6+x+’%',(j<17)*60+(j&15)*7+’%',1]+’)’ Point cloud rendering The spring in the antennae and the tie are rendered with a point cloud rendering method. Clouds rendering This results in the 3d cloudscape in the background. - Center y
Simon Collison | Colly | The Celebrated Miscellany
Related:
Related: