INFO804 Introduction à l'informatique graphique
|
#include <Color.h>
Public Types | |
enum | Channel { Red , Green , Blue } |
Public Member Functions | |
Color (Real red, Real green, Real blue) | |
Color & | clamp () |
Garantees that color channels are between 0 and 1. | |
operator float * () | |
operator const float * () const | |
Real | r () const |
Real | g () const |
Real | b () const |
Real & | r () |
Real & | g () |
Real & | b () |
Color | operator* (Real v) const |
Color | operator* (Color other) const |
Color | operator+ (Color other) const |
Color & | operator+= (Color other) |
Color | sup (Color other) const |
Channel | argmax () const |
Real | max () const |
Real | min () const |
void | getHSV (int &h, Real &s, Real &v) const |
void | setHSV (int h, Real s, Real v) |
This structure codes the color of an object, as well as its transparency. Color channels are stored as floating point values between 0 and 1.
|
inline |
Definition at line 21 of file Color.h.
|
inline |
|
inline |
|
inline |
|
inline |
Garantees that color channels are between 0 and 1.
Definition at line 27 of file Color.h.
|
inline |
|
inline |
Definition at line 102 of file Color.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 122 of file Color.h.