Class: Bioroebe::ColourScheme::Buried
- Defined in:
- lib/bioroebe/colours/colour_schemes/buried.rb
Overview
Bioroebe::ColourScheme::Buried
Class Method Summary collapse
-
.score_to_rgb_hex(score, min, max) ⇒ Object
# === Bioroebe::ColourScheme::Buried.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::Buried.score_to_rgb_hex
#
26 27 28 29 |
# File 'lib/bioroebe/colours/colour_schemes/buried.rb', line 26 def self.score_to_rgb_hex(score, min, max) percent = score_to_percent(score, min, max) rgb_percent_to_hex(0.0, 1.0 - percent, percent) end |