Skip to content

Instantly share code, notes, and snippets.

@Nek
Created May 30, 2012 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nek/2838200 to your computer and use it in GitHub Desktop.
Save Nek/2838200 to your computer and use it in GitHub Desktop.
Animatron "I thought it would work" list
var b = Builder._$, C = anm.C;
var fhsv = Builder.fhsv;
// canvas1
var scene1 = b().circle([0, 0], 20)
.fill(fhsv(1, .5, .5, 1))
.nostroke();
createPlayer('gameScreen', {'mode':C.M_DYNAMIC}).load(scene1);
return b()
.add(
b('blue-rect').rect([100, 25], [70, 70])
.fill('#009')
.stroke('#f00', 3)
.trans([4, 8], [[100, 100], [-200, 300]])
.scale([0, 10], [[1, 1], [.5, .5]]))
.add(
b('def-rect').rect([115, 90], [60, 60]))
.trans([0, 4], [[0, 0], [ 100, 100 ]])
.alpha([0, 3], [0, 1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment