OrbitEngine::Math::Color namespace

Contents

Functions

auto FromHSL(int h, float s, float l) -> Color3f
Create an RGB color from HSL.

Variables

static const Color3f Black
Solid black color (0, 0, 0)
static const Color3f White
Solid white color (1, 1, 1)
static const Color3f Red
Solid red color (1, 0, 0)
static const Color3f Green
Solid green color (0, 1, 0)
static const Color3f Blue
Solid blue color (0, 0, 1)
static const Color3f Magenta
Solid magenta color (1, 0, 1)
static const Color4f Transparent
Transparent color (0, 0, 0, 0)

Function documentation

Color3f OrbitEngine::Math::Color::FromHSL(int h, float s, float l)

Create an RGB color from HSL.

Parameters
in Hue ∈ [0, 360]
in Saturation ∈ [0, 1]
in Lightness ∈ [0, 1]