Class: Bioroebe::ColourScheme::Strand
- Defined in:
- lib/bioroebe/colours/colour_schemes/strand.rb
Overview
Bioroebe::ColourScheme::Strand
Class Method Summary collapse
-
.score_to_rgb_hex(score, min, max) ⇒ Object
# === Bioroebe::ColourScheme::Strand.score_to_rgb_hex ======================================================================= #.
Methods inherited from Score
[], colours, max, min, percent_to_hex, rgb_percent_to_hex, score_to_percent, scores
Class Method Details
.score_to_rgb_hex(score, min, max) ⇒ Object
#
Bioroebe::ColourScheme::Strand.score_to_rgb_hex
#
60 61 62 63 |
# File 'lib/bioroebe/colours/colour_schemes/strand.rb', line 60 def self.score_to_rgb_hex(score, min, max) percent = score_to_percent(score, min, max) rgb_percent_to_hex(percent, percent, 1.0-percent) end |