Module: Dominikh::ColoredGraph
- Defined in:
- lib/subtle/dominikh/graph/colored_graph.rb
Instance Method Summary collapse
Instance Method Details
#color ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/subtle/dominikh/graph/colored_graph.rb', line 3 def color red = ((255/100.0) * value) green = 255 - ((255/100.0) * value) color = "#%.2x%.2x00" % [red, green] Subtlext::Color.new(color) end |