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
background = new BackgroundLayer | |
backgroundColor: '#333' | |
scroll = new ScrollComponent (width:300, height:300, borderRadius: 6, backgroundColor:'#111') | |
scroll.center() | |
for i in [0..5] | |
layer = new Layer | |
parent: scroll.content | |
width: scroll.width - 40 |
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
bg = new BackgroundLayer | |
backgroundColor: "#ccc" | |
radius = 100 | |
stroke = 10 | |
viewBox = (radius * 2) + stroke | |
#prototyp에서 layer.pathLength가 왠지 안먹히길래.. 안변하는거라 하나 맨들어둠. | |
pl = 2 * Math.PI * radius |