cinder::CHANTRAIT< float > Struct Template Reference
#include <ChanTraits.h>
List of all members.
Public Types |
typedef float | Sum |
typedef float | Accum |
typedef float | SignedSum |
Static Public Member Functions |
static float | max () |
static float | convert (uint8_t v) |
static float | convert (uint16_t v) |
static float | convert (float v) |
static float | grayscale (float r, float g, float b) |
static float | premultiply (float c, float a) |
| Calculates the multiplied version of a color component c by alpha a.
|
template<>
struct cinder::CHANTRAIT< float >
Member Typedef Documentation
Member Function Documentation
static float cinder::CHANTRAIT< float >::grayscale |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b | |
|
) |
| | [static] |
Calculates the multiplied version of a color component c by alpha a.
The documentation for this struct was generated from the following file: