#include <opennurbs_color.h>
◆ ON_4fColor() [1/4]
ON_4fColor::ON_4fColor |
( |
| ) |
|
◆ ~ON_4fColor()
ON_4fColor::~ON_4fColor |
( |
| ) |
|
|
default |
◆ ON_4fColor() [2/4]
ON_4fColor::ON_4fColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
◆ ON_4fColor() [3/4]
◆ ON_4fColor() [4/4]
ON_4fColor::ON_4fColor |
( |
const ON_Color & |
| ) |
|
Note that this function will set the alpha correctly from ON_Color's 'inverted' alpha.
◆ Alpha()
float ON_4fColor::Alpha |
( |
void |
| ) |
const |
◆ Blue()
float ON_4fColor::Blue |
( |
void |
| ) |
const |
◆ Compare()
int ON_4fColor::Compare |
( |
const ON_4fColor & |
other | ) |
const |
Returns: < 0 if (this < other), 0 if (this == other), > 0 if (this > other).
◆ Green()
float ON_4fColor::Green |
( |
void |
| ) |
const |
◆ IsValid()
bool ON_4fColor::IsValid |
( |
class ON_TextLog * |
text_log = nullptr | ) |
const |
◆ operator ON_Color()
ON_4fColor::operator ON_Color |
( |
void |
| ) |
const |
Will invert the opacity alpha to transparency.
◆ operator!=()
bool ON_4fColor::operator!= |
( |
const ON_4fColor & |
| ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool ON_4fColor::operator== |
( |
const ON_4fColor & |
| ) |
|
◆ Red()
float ON_4fColor::Red |
( |
void |
| ) |
const |
◆ SetAlpha()
void ON_4fColor::SetAlpha |
( |
float |
a | ) |
|
◆ SetBlue()
void ON_4fColor::SetBlue |
( |
float |
b | ) |
|
◆ SetGreen()
void ON_4fColor::SetGreen |
( |
float |
g | ) |
|
◆ SetRed()
void ON_4fColor::SetRed |
( |
float |
r | ) |
|
◆ SetRGBA()
void ON_4fColor::SetRGBA |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
◆ Unset