Permalink
Browse files

Improve default gridcomponent cell rendering

  • Loading branch information...
J.P.P Treub
J.P.P Treub committed Jul 30, 2016
1 parent d346edc commit 0598f100d9f3d8e1883b460aece6b830de0cf972
Showing with 3 additions and 1 deletion.
  1. +3 −1 framer/Components/GridComponent.coffee
@@ -93,8 +93,10 @@ class exports.GridComponent extends Layer
_defaultRenderCell: (cell, column, row) ->
fraction = ((column / @columns) + (row / @rows) / 2)
cell.backgroundColor = Color.mix("blue", "purple", fraction, true, "rgb")
cell.backgroundColor = "#28affa"
cell.hueRotate = column * 20 + (row % @columns) * (20 / (@columns + 1))
Utils.labelLayer(cell, "#{row}:#{column}")
cell.style.fontSize = "30px"
_reset: ->
_.invokeMap(@cells, "destroy")

0 comments on commit 0598f10

Please sign in to comment.