# Cinder

# 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

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.

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

- include/cinder/ChanTraits.h