|
|
using | BaseType = Eigen::Vector4f |
| |
|
|
| Color (const Eigen::Vector4f &color) |
| |
|
| Color (const Eigen::Vector3f &rgb, float alpha=1.0f) |
| |
|
| Color (const float r, const float g, const float b, const float a) |
| |
|
| Color (const float r, const float g, const float b) |
| |
|
| Color (const float v) |
| |
|
template<typename Derived> |
| | Color (const Eigen::MatrixBase< Derived > &p) |
| |
|
template<typename Derived> |
| Color & | operator= (const Eigen::MatrixBase< Derived > &p) |
| |
|
float & | r () |
| |
|
float | r () const |
| |
|
float & | g () |
| |
|
float | g () const |
| |
|
float & | b () |
| |
|
float | b () const |
| |
|
float & | a () |
| |
|
float | a () const |
| |
|
Eigen::Vector3f | to_vec3 () const |
| |
|
Eigen::Vector4f | to_vec4 () const |
| |
|
Color | operator+ (const float v) const |
| |
|
Color | operator- (const float v) const |
| |
|
Color | operator/ (const float v) const |
| |
|
Color | operator* (const float v) const |
| |
|
Color | operator+ (const Color c) const |
| |
|
Color | operator- (const Color c) const |
| |
|
void | clamp () |
| | Clamps the color.
|
| |
|
Color | clamped () const |
| |
|
bool | is_white () |
| |
|
bool | is_black () |
| |
|
float | distance (const Color c) const |
| |
|
int | to_integer () const |
| |
◆ random_from()
template<typename URBG>
| static const Color random_from |
( |
URBG && | urbg | ) |
|
|
inlinestatic |
Get a random color.
- Parameters
-
| [in,out] | urbg | C++11 random number generator. |
- Template Parameters
-
- Returns
- Color.
The documentation for this class was generated from the following file: