Created
May 30, 2012 18:40
-
-
Save Nek/2838200 to your computer and use it in GitHub Desktop.
Animatron "I thought it would work" list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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