Method: Sass::Script::Functions#hue
- Defined in:
- lib/sass/script/functions.rb
#hue($color) ⇒ Number
Returns the hue component of a color. See the CSS3 HSL specification. Calculated from RGB where necessary via this algorithm.
554 555 556 557 |
# File 'lib/sass/script/functions.rb', line 554
def hue(color)
assert_type color, :Color, :color
Sass::Script::Number.new(color.hue, ["deg"])
end
|