Color4b.this

CTor

Expect that every component is in range 0.0 .. 1.0

  1. this(ubyte red, ubyte green, ubyte blue, ubyte alpha = 255)
  2. this(uint hexValue)
  3. this(ref const Color4f col)
    struct Color4b
    @nogc
    this
    pure nothrow
    (
    ref const Color4f col
    )
    in { assert (col.red >= 0f && col.red <= 1f); assert (col.green >= 0f && col.green <= 1f); assert (col.blue >= 0f && col.blue <= 1f); assert (col.alpha >= 0f && col.alpha <= 1f); }

Meta