Gel2D - The free/open source game creation suite

Public Member Functions | Public Attributes
gel::GelHSLA Class Reference

HSLA color class. More...

#include <gelColor.h>

List of all members.

Public Member Functions

 GelHSLA ()
 Default constructor.
 GelHSLA (int hue, int sat, int lum, int alpha)
 Full color constructor.
 GelHSLA (int value)
 Single color constructor.
 GelHSLA (const GelRGBA &col)
 GelRGBA constructor.
GelHSLA operator+ (const GelHSLA &c) const
GelHSLA operator- (const GelHSLA &c) const
GelHSLA operator* (const GelHSLA &c) const
GelHSLA operator/ (const GelHSLA &c) const
GelHSLA operator= (const GelHSLA &c)
GelHSLA operator+= (const GelHSLA &c)
GelHSLA operator-= (const GelHSLA &c)
GelHSLA operator*= (const GelHSLA &c)
GelHSLA operator/= (const GelHSLA &c)
bool operator== (const GelHSLA &c) const
bool operator!= (const GelHSLA &c) const

Public Attributes

int h
 Hue.
int s
 Saturation.
int l
 Luminance.
int a
 Alpha.

Detailed Description

HSLA color class.

This class stores color data as hue, saturation, luminance and alpha channels.
Each channel is an integer. Range: 0-255.


Constructor & Destructor Documentation

gel::GelHSLA::GelHSLA ( ) [inline]

Default constructor.

gel::GelHSLA::GelHSLA ( int  hue,
int  sat,
int  lum,
int  alpha 
) [inline]

Full color constructor.

Parameters:
hue: Hue.
sat: Saturation.
lum: Luminance.
alpha: Alpha.
gel::GelHSLA::GelHSLA ( int  value) [inline]

Single color constructor.

Parameters:
value: Value to apply to all components.
gel::GelHSLA::GelHSLA ( const GelRGBA col)

GelRGBA constructor.

Parameters:
col: Color to assign.

Member Function Documentation

GelHSLA gel::GelHSLA::operator+ ( const GelHSLA c) const [inline]
GelHSLA gel::GelHSLA::operator- ( const GelHSLA c) const [inline]
GelHSLA gel::GelHSLA::operator* ( const GelHSLA c) const [inline]
GelHSLA gel::GelHSLA::operator/ ( const GelHSLA c) const [inline]
GelHSLA gel::GelHSLA::operator= ( const GelHSLA c) [inline]
GelHSLA gel::GelHSLA::operator+= ( const GelHSLA c) [inline]
GelHSLA gel::GelHSLA::operator-= ( const GelHSLA c) [inline]
GelHSLA gel::GelHSLA::operator*= ( const GelHSLA c) [inline]
GelHSLA gel::GelHSLA::operator/= ( const GelHSLA c) [inline]
bool gel::GelHSLA::operator== ( const GelHSLA c) const [inline]
bool gel::GelHSLA::operator!= ( const GelHSLA c) const [inline]

Member Data Documentation

Hue.

Saturation.

Luminance.

Alpha.


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