Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 (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. More...
 
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 ( 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: