Method: Color::HSL#css_rgba

Defined in:
lib/color/hsl.rb

#css_rgba(alpha = 1) ⇒ Object

Present the colour as an RGBA (with alpha) HTML/CSS colour string (e.g., “rgb(0%, 50%, 100%, 1)”). Note that this will perform a #to_rgb operation using the default conversion formula.

[View source]

45
46
47
# File 'lib/color/hsl.rb', line 45

def css_rgba(alpha = 1)
  to_rgb.css_rgba(alpha)
end