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]
  3. ubyte r;
  4. ubyte g;
  5. ubyte b;
  6. ubyte a;

Examples

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

Meta