Color.this

Construct a color from components[0 .. 4]. It must have length of at least 4 and be in r, g, b, a order.

  1. this(int red, int green, int blue, int alpha)
  2. this(ubyte[] components)
    struct Color
    @safe nothrow pure @nogc
    this
    (
    scope ubyte[] components
    )
  3. this(float r, float g, float b, float a)
  4. this(ColorF colorF)

Meta

History

Added July 18, 2022 (dub v10.9)