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
class Rectangle extends Layer | |
constructor: (options = {}) -> | |
options.backgroundColor = options.backgroundColor || "#FFF" | |
options.visible = options.visible || true | |
options.opacity = options.opacity || 1 | |
super options | |
@circle = new Layer | |
parent: @ |
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
class Rectangle extends Layer | |
constructor: (options = {}) -> | |
options.backgroundColor = options.backgroundColor || "#FFF" | |
options.visible = options.visible || true | |
options.opacity = options.opacity || 1 | |
super options | |
rectangle = new Rectangle({width: 10, height: 10}) |
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
class Row extends Layer | |
constructor: (options={}) -> | |
super options | |
@title = options.title | |
@subtitle = options.subtitle | |
@renderRow() | |
renderRow: -> |