Method: Color::HSL#css_rgb
- Defined in:
- lib/color/hsl.rb
permalink #css_rgb ⇒ Object
Present the colour as an RGB HTML/CSS colour string (e.g., “rgb(0%, 50%, 100%)”). Note that this will perform a #to_rgb operation using the default conversion formula.
38 39 40 |
# File 'lib/color/hsl.rb', line 38 def css_rgb to_rgb.css_rgb end |