Method: Color::HSL#css_rgb

Defined in:
lib/color/hsl.rb

#css_rgbObject

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.

[View source]

38
39
40
# File 'lib/color/hsl.rb', line 38

def css_rgb
  to_rgb.css_rgb
end