Created
March 28, 2013 16:40
-
-
Save diverted247/5264761 to your computer and use it in GitHub Desktop.
A small light.ly hello world app.
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
//imports | |
appjs : import = js/app.js | |
core: import = light/core.js | |
html: import = light/html.js | |
easeljs : import = js/easel.js | |
//references | |
application:@ = core.application | |
event:@ = core.listener | |
hc:@ = html.canvas | |
cs:@ = createjs.Shape | |
ct:@ = createjs.Text | |
cg:@ = createjs.Graphics | |
cst:@ = createjs.Stage | |
app:application | |
canvas:hc | |
addTo:! = document.body[0] | |
resize:event | |
method:@ = appjs.resize | |
this:@ = window | |
stage:cst | |
canvas:@ = app.canvas | |
snapToPixel:bool = true | |
panel:cs | |
graphic:cg | |
beginFill:! | |
cg.getRGB:! | |
0:n=150 | |
1:n=150 | |
2:n=150 | |
drawRoundRect:! | |
0:n=0 | |
1:n=0 | |
2:n=250 | |
3:n=1000 | |
4:n=0 | |
x:n=10 | |
y:n=10 | |
addTo:! = app.stage | |
text:createjs.Text | |
text = "Hello Light.ly - Composition Framework" | |
font = "100px 'Ashley Inline MT W00'" | |
color = "#000" | |
snapToPixel:bool = true | |
textAlign = "center" | |
textBaseline = "middle" | |
addTo:! = app.stage | |
//call init in appjs | |
appjs.init:! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍