JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
JRGB Struct Reference

#include <jColor.h>

Public Member Functions

 JRGB ()
 
 JRGB (const JSize r, const JSize g, const JSize b)
 
 JRGB (const JHSB &color)
 
void Set (const JSize r, const JSize g, const JSize b)
 
JRGBoperator*= (const JFloat v)
 
JRGBoperator/= (const JFloat v)
 

Public Attributes

JSize red
 
JSize green
 
JSize blue
 

Constructor & Destructor Documentation

◆ JRGB() [1/3]

JRGB::JRGB ( )
inline

◆ JRGB() [2/3]

JRGB::JRGB ( const JSize  r,
const JSize  g,
const JSize  b 
)
inline

◆ JRGB() [3/3]

JRGB::JRGB ( const JHSB color)

Based on code from Computer Graphics, Principles and Practice, by James D. Foley, et al., Addison-Wesley.

Member Function Documentation

◆ operator*=()

JRGB & JRGB::operator*= ( const JFloat  v)
inline

◆ operator/=()

JRGB & JRGB::operator/= ( const JFloat  v)
inline

◆ Set()

void JRGB::Set ( const JSize  r,
const JSize  g,
const JSize  b 
)
inline

Member Data Documentation

◆ blue

JSize JRGB::blue

◆ green

JSize JRGB::green

◆ red

JSize JRGB::red

The documentation for this struct was generated from the following files: