Loonim.HslRgb Class Reference

Detailed Description

HSL to and from RGB. All remapped to 0-1.

Static Public Member Functions

static string ToString (float h, float s, float l)
 
static void ToRgb (ref float h, ref float s, ref float l)
 Gets RGB from HSL. Outputs right over the inputs. Inputs are all 0-1. More...
 
static void ToHsl (ref float r, ref float g, ref float b)
 Gets hsl from RGB. Outputted directly over the inputs. 0-1. More...
 
static void ToHueLum (ref float r, ref float g, float b)
 Gets hue and luminosity from RGB. Outputted directly over the inputs. 0-1. More...
 
static void ToHueSat (ref float r, ref float g, float b)
 Gets hue and saturation from RGB. Outputted directly over the inputs. 0-1. More...
 
static void ToSatLum (ref float r, ref float g, float b)
 Gets saturation and luminance from RGB. Outputted directly over the inputs. 0-1. More...
 
static float Hue (float r, float g, float b)
 Gets hue from RGB. 0-1. More...
 
static float Saturation (float r, float g, float b)
 Gets saturation from RGB. 0-1. More...
 
static float Luminance (float r, float g, float b)
 Gets luminance from RGB. 0-1. More...
 

Member Function Documentation

static float Loonim.HslRgb.Hue ( float  r,
float  g,
float  b 
)
inlinestatic

Gets hue from RGB. 0-1.

static float Loonim.HslRgb.Luminance ( float  r,
float  g,
float  b 
)
inlinestatic

Gets luminance from RGB. 0-1.

static float Loonim.HslRgb.Saturation ( float  r,
float  g,
float  b 
)
inlinestatic

Gets saturation from RGB. 0-1.

static void Loonim.HslRgb.ToHsl ( ref float  r,
ref float  g,
ref float  b 
)
inlinestatic

Gets hsl from RGB. Outputted directly over the inputs. 0-1.

static void Loonim.HslRgb.ToHueLum ( ref float  r,
ref float  g,
float  b 
)
inlinestatic

Gets hue and luminosity from RGB. Outputted directly over the inputs. 0-1.

static void Loonim.HslRgb.ToHueSat ( ref float  r,
ref float  g,
float  b 
)
inlinestatic

Gets hue and saturation from RGB. Outputted directly over the inputs. 0-1.

static void Loonim.HslRgb.ToRgb ( ref float  h,
ref float  s,
ref float  l 
)
inlinestatic

Gets RGB from HSL. Outputs right over the inputs. Inputs are all 0-1.

static void Loonim.HslRgb.ToSatLum ( ref float  r,
ref float  g,
float  b 
)
inlinestatic

Gets saturation and luminance from RGB. Outputted directly over the inputs. 0-1.

static string Loonim.HslRgb.ToString ( float  h,
float  s,
float  l 
)
inlinestatic