RGBA.this

Create a rgba.RGBA boxed type.

  1. this(float red, float green, float blue, float alpha)
    class RGBA
    this
    (
    float red = 0.0
    ,
    float green = 0.0
    ,
    float blue = 0.0
    ,
    float alpha = 0.0
    )
  2. this(void* ptr, Flag!"Take" take)

Parameters

red float

The intensity of the red channel from 0.0 to 1.0 inclusive

green float

The intensity of the green channel from 0.0 to 1.0 inclusive

blue float

The intensity of the blue channel from 0.0 to 1.0 inclusive

alpha float

The opacity of the color from 0.0 for completely translucent to 1.0 for opaque