Color.transparent

Checks if the colour is completely transparent (with the alpha channel equals to 0).

  1. bool transparent [@property getter]
    class Color
    pure nothrow @property @safe @nogc
    bool
    transparent
    ()
  2. bool transparent [@property setter]

Examples

assert(!new Color(0, 0, 0, 1).transparent);
assert(Colors.TRANSPARENT.transparent);

Meta