Cinder  0.9.1
Public Types | Static Public Member Functions | List of all members
cinder::CHANTRAIT< float > Struct Template Reference

#include <ChanTraits.h>

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 (half_float v)
 
static float convert (float v)
 
static float grayscale (float r, float g, float b)
 
static float premultiply (float c, float a)
 
static float inverse (float c)
 

Member Typedef Documentation

typedef float cinder::CHANTRAIT< float >::Sum
typedef float cinder::CHANTRAIT< float >::Accum
typedef float cinder::CHANTRAIT< float >::SignedSum

Member Function Documentation

static float cinder::CHANTRAIT< float >::max ( )
static
static float cinder::CHANTRAIT< float >::convert ( uint8_t  v)
static
static float cinder::CHANTRAIT< float >::convert ( uint16_t  v)
static
static float cinder::CHANTRAIT< float >::convert ( half_float  v)
static
static float cinder::CHANTRAIT< float >::convert ( float  v)
static
static float cinder::CHANTRAIT< float >::grayscale ( float  r,
float  g,
float  b 
)
static
static float cinder::CHANTRAIT< float >::premultiply ( float  c,
float  a 
)
static

Calculates the multiplied version of a color component c by alpha a.

static float cinder::CHANTRAIT< float >::inverse ( float  c)
static

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