Method: Clutter::Color.hlsa

Defined in:
lib/clutter/color.rb

.hlsa(hue, luminance, saturation, alpha) ⇒ Object



48
49
50
51
52
53
54
55
56
57
# File 'lib/clutter/color.rb', line 48

def hlsa(hue, luminance, saturation, alpha)
  if respond_to?(:from_hls, true)
    color = from_hls(hue, luminance, saturation)
  else
    color = new
    color.from_hls(hue, luminance, saturation)
  end
  color.alpha = alpha
  color
end