Class: Bioroebe::ColourScheme::Hydropathy
- Defined in:
- lib/bioroebe/colours/colour_schemes/hydropathy.rb
Overview
Bioroebe::ColourScheme::Hydropathy
Class Method Summary collapse
-
.score_to_rgb_hex(score, min, max) ⇒ Object
# === Bioroebe::ColourScheme::Hydropathy.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::Hydropathy.score_to_rgb_hex
#
65 66 67 68 |
# File 'lib/bioroebe/colours/colour_schemes/hydropathy.rb', line 65 def self.score_to_rgb_hex(score, min, max) percent = score_to_percent(score, min, max) rgb_percent_to_hex(percent, 0.0, 1.0-percent) end |