Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
ColorHSV Class Reference

Representation of color in HSV model More...

Public Member Functions

 ColorHSV (float h, float s, float v, float a)
 Constructs a new ColorHSV with given h, s, v, a components More...
 
 ColorHSV (float h, float s, float v)
 Constructs a new ColorHSV with given h, s, v components and sets alpha to 1 More...
 
 ColorHSV (Color color)
 Constructs a new ColorHSV from a Color More...
 
void FromColor (Color color)
 Loads an existing ColorHSV with a Color More...
 
Color ToColor ()
 Converts ColorHSV to a RGB representation More...
 

Public Attributes

float a
 Alpha component of the color More...
 
float h
 Hue component of the color More...
 
float s
 Saturation component of the color More...
 
float v
 Value component of the color More...
 

Detailed Description

Representation of color in HSV model

Constructor & Destructor Documentation

ColorHSV.ColorHSV ( float  h,
float  s,
float  v,
float  a 
)
inline

Constructs a new ColorHSV with given h, s, v, a components

Parameters
hHue component
sSaturation component
vValue component
aAlpha component
ColorHSV.ColorHSV ( float  h,
float  s,
float  v 
)
inline

Constructs a new ColorHSV with given h, s, v components and sets alpha to 1

Parameters
hHue component
sSaturation component
vValue component
ColorHSV.ColorHSV ( Color  color)
inline

Constructs a new ColorHSV from a Color

Member Function Documentation

void ColorHSV.FromColor ( Color  color)
inline

Loads an existing ColorHSV with a Color

Color ColorHSV.ToColor ( )
inline

Converts ColorHSV to a RGB representation

Member Data Documentation

float ColorHSV.a

Alpha component of the color

float ColorHSV.h

Hue component of the color

float ColorHSV.s

Saturation component of the color

float ColorHSV.v

Value component of the color


The documentation for this class was generated from the following file: