Color.this

Constructs a dsdl2.Color by feeding in red, green, blue, and optionally alpha values

  1. this()
  2. this(SDL_Color sdlColor)
  3. this(ubyte r, ubyte g, ubyte b, ubyte a)
    struct Color
    this
    (
    ubyte r
    ,
    ubyte g
    ,
    ubyte b
    ,
    ubyte a = 255
    )
  4. this(ubyte[3] rgb)
  5. this(ubyte[4] rgba)

Parameters

r ubyte

red color channel value (0-255)

g ubyte

green color channel value (0-255)

b ubyte

blue color channel value (0-255)

a ubyte

alpha transparency channel value (0-255 / transparent-opaque)

Meta