Static Public Member Functions

static void ToRgb (ref float h, ref float s, ref float y)
 Gets RGB from HSY. Outputs right over the inputs. More...
 
static void ToHsy (ref float r, ref float g, ref float b)
 Gets hsy from RGB. Outputted directly over the inputs. 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 hue and saturation from RGB. Outputted directly over the inputs. 0-1. More...
 
static float Hue (float r, float g, float b)
 Gets hue and luminosity from RGB. Outputted directly over the inputs. 0-1. More...
 
static float Saturation (float r, float g, float b)
 Gets hue and saturation from RGB. Outputted directly over the inputs. 0-1. More...
 
static float Luminance (float r, float g, float b)
 Computes the Y luminance for the given RGB colour. More...
 

Private Attributes

const float R =0.3f
 
const float G =0.59f
 
const float B =0.11f
 

Member Function Documentation

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

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

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

Computes the Y luminance for the given RGB colour.

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

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

static void Loonim.HsyRgb.ToHsy ( ref float  r,
ref float  g,
ref float  b 
)
inlinestatic

Gets hsy from RGB. Outputted directly over the inputs.

static void Loonim.HsyRgb.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.HsyRgb.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.HsyRgb.ToRgb ( ref float  h,
ref float  s,
ref float  y 
)
inlinestatic

Gets RGB from HSY. Outputs right over the inputs.

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

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

Member Data Documentation

const float Loonim.HsyRgb.B =0.11f
private
const float Loonim.HsyRgb.G =0.59f
private
const float Loonim.HsyRgb.R =0.3f
private