How did they make the header loading animation ? Seems to be using canvas but I don't get how it works.
Anypixel.js
11–20 of 38 posts
Re: Anypixel.js
#12Re: Anypixel.js
#13Does anyone know which Google office the button wall in the demo video is installed?
Re: Anypixel.js
#14Is it just me, or is that video really bad at demoing the result? It seems like pressing the buttons does nothing from the video?
Re: Anypixel.js
#15Re: Anypixel.js
#16How did they make the header loading animation ? Seems to be using canvas but I don't get how it works.
https://googlecreativelab.github.io/anypixel/index_external....
It tracks your mouse, or touch event. Whenever you move, it accumulates a number (search "mouseForce") to the nearby pixels. This number is then used as an index into a sprite sheet[1][2]. It uses Pixi's MovieClip object for the heavy lifting, but they create their own Tile object to hook the mouse force to the sprite sheet.
So to sum up, they create a grid of Tile objects, each of which accumulates a number based on nearby mouse/touch movement, then uses that number to index into a sprite sheet rendered by Pixi.js.
[1] http://googlecreativelab.github.io/anypixel/img/x_03.png
[2] The sprite sheet is white-on-transparent, so it's invisible in Chrome. Here's a screenshot: http://i.imgur.com/rKDrSoP.png
Re: Anypixel.js
#17Those buttons looks cool. Anyone know where to get them? ( https://googlecreativelab.github.io/anypixel/img/carousel_02... )
In the states checkout Happ Controls (now seem to be called Suzohapp) [ https://na.suzohapp.com/products/pushbuttons/58-9111-L ] or Amusement Distributors. [ http://www.amusementdistributors.com/index.php?main_page=pro... ]
Just note that they're not illuminated, they just take a standard size microswitch. Looks like they rigged up the illumination separately.
Re: Anypixel.js
#18Those buttons looks cool. Anyone know where to get them? ( https://googlecreativelab.github.io/anypixel/img/carousel_02... )