JX Application Framework
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
jColor.h File Reference
#include "JList.h"
#include "jMath.h"
Include dependency graph for jColor.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  JRGB
 
struct  JHSB
 

Typedefs

using JColorID = JUInt64
 

Functions

std::istream & operator>> (std::istream &input, JRGB &color)
 
std::ostream & operator<< (std::ostream &output, const JRGB &color)
 
std::weak_ordering JCompareRGBValues (const JRGB &c1, const JRGB &c2)
 
JRGB JBlend (const JRGB &c1, const JRGB &c2, const JFloat alpha)
 
bool operator== (const JRGB &c1, const JRGB &c2)
 
JRGB operator* (const JRGB &c, const JFloat v)
 
JRGB operator* (const JFloat v, const JRGB &c)
 
JRGB operator/ (const JRGB &c, const JFloat v)
 
std::istream & operator>> (std::istream &input, JHSB &color)
 
std::ostream & operator<< (std::ostream &output, const JHSB &color)
 
std::weak_ordering JCompareHSBValues (const JHSB &c1, const JHSB &c2)
 
bool operator== (const JHSB &c1, const JHSB &c2)
 

Variables

const JSize kJMaxRGBValue = 65535
 
const JFloat kJMaxRGBValueF = 65535.0
 
const JSize kJMaxHSBValue = 65535
 
const JFloat kJMaxHSBValueF = 65535.0
 

Typedef Documentation

◆ JColorID

using JColorID = JUInt64

Function Documentation

◆ JBlend()

JRGB JBlend ( const JRGB c1,
const JRGB c2,
const JFloat  alpha 
)
inline

◆ JCompareHSBValues()

std::weak_ordering JCompareHSBValues ( const JHSB c1,
const JHSB c2 
)

◆ JCompareRGBValues()

std::weak_ordering JCompareRGBValues ( const JRGB c1,
const JRGB c2 
)

◆ operator*() [1/2]

JRGB operator* ( const JFloat  v,
const JRGB c 
)
inline

◆ operator*() [2/2]

JRGB operator* ( const JRGB c,
const JFloat  v 
)
inline

◆ operator/()

JRGB operator/ ( const JRGB c,
const JFloat  v 
)
inline

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  output,
const JHSB color 
)

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  output,
const JRGB color 
)

◆ operator==() [1/2]

bool operator== ( const JHSB c1,
const JHSB c2 
)
inline

◆ operator==() [2/2]

bool operator== ( const JRGB c1,
const JRGB c2 
)
inline

◆ operator>>() [1/2]

std::istream & operator>> ( std::istream &  input,
JHSB color 
)

◆ operator>>() [2/2]

std::istream & operator>> ( std::istream &  input,
JRGB color 
)

Variable Documentation

◆ kJMaxHSBValue

const JSize kJMaxHSBValue = 65535

◆ kJMaxHSBValueF

const JFloat kJMaxHSBValueF = 65535.0

◆ kJMaxRGBValue

const JSize kJMaxRGBValue = 65535

◆ kJMaxRGBValueF

const JFloat kJMaxRGBValueF = 65535.0