Method: Color::RGB#css_rgb

Defined in:
lib/atome/utilities/color_helper/color/rgb.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.



58
59
60
# File 'lib/atome/utilities/color_helper/color/rgb.rb', line 58

def css_rgb
  "rgb(%3.2f%%, %3.2f%%, %3.2f%%)" % [ red_p, green_p, blue_p ]
end