Method: Color::CMYK#css_rgba
- Defined in:
- lib/color/cmyk.rb
permalink #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.
73 74 75 |
# File 'lib/color/cmyk.rb', line 73 def css_rgba(alpha = 1) to_rgb.css_rgba(alpha) end |