Permalink
Browse files

tweak colors

  • Loading branch information...
1 parent b86650c commit 3b390830f04e5ba391ce0326da5edebdfe3da6ac @tilgovi committed Feb 20, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/plugin/heatmap.coffee
@@ -76,10 +76,12 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
h = d3.scale.log()
.domain([1, 2])
.range([300, 0])
+ s = d3.scale.log()
+ .domain([1, 2])
l = d3.scale.log()
.domain([1, 1.02, 1.1, 2])
- .range([0, 0, 0.375, 0.5])
- d3.hsl(h(v), 1.0, l(v)).toString()
+ .range([0.25, 0.25, 0.375, 0.5])
+ d3.hsl(h(v), s(v), l(v)).toString()
# Public: Updates the @heatmap property with the latest annotation
# elements in the DOM.

0 comments on commit 3b39083

Please sign in to comment.