Method: Selenium::WebDriver::Support::Color#rgba

Defined in:
lib/selenium/webdriver/support/color.rb

#rgbaObject



135
136
137
138
# File 'lib/selenium/webdriver/support/color.rb', line 135

def rgba
  a = alpha == 1 ? '1' : alpha
  "rgba(#{red}, #{green}, #{blue}, #{a})"
end