Color.this

Creates the average colour of the given one.

  1. this(ubyte r, ubyte g, ubyte b, ubyte a)
  2. this(Color[] colors)
    class Color
    @safe
    this

Examples

assert(new Color([new Color(200, 0, 0), new Color(0, 200, 0)]) == new Color(100, 100, 0));

Meta