Skip to content

Instantly share code, notes, and snippets.

View marinrafael's full-sized avatar

Rafael Marin marinrafael

  • Work & Co
  • Brooklyn, NY
View GitHub Profile
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: @
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})
class Row extends Layer
constructor: (options={}) ->
super options
@title = options.title
@subtitle = options.subtitle
@renderRow()
renderRow: ->