Method: Sass::Script::Value::Color#alpha?

Defined in:
lib/sass/script/value/color.rb

#alpha?Boolean

Returns whether this color object is translucent; that is, whether the alpha channel is non-1.

Returns:

  • (Boolean)


355
356
357
# File 'lib/sass/script/value/color.rb', line 355

def alpha?
  alpha < 1
end