Blender V2.61 - r43446
Functions

ColorBlock.cpp File Reference

#include <ColorBlock.h>
#include <Image.h>
#include <Common.h>

Go to the source code of this file.

Functions

static uint colorLuminance (Color32 c)
static uint colorDistance (Color32 c0, Color32 c1)
static uint8 component (Color32 c, uint i)

Detailed Description

Definition in file ColorBlock.cpp.


Function Documentation

static uint colorDistance ( Color32  c0,
Color32  c1 
) [inline, static]

Definition at line 48 of file ColorBlock.cpp.

References Color32::b, Color32::g, and Color32::r.

static uint colorLuminance ( Color32  c) [inline, static]

Definition at line 42 of file ColorBlock.cpp.

References Color32::b, Color32::g, and Color32::r.

static uint8 component ( Color32  c,
uint  i 
) [inline, static]

Definition at line 139 of file ColorBlock.cpp.

References Color32::a, Color32::b, Color32::g, and Color32::r.

Referenced by ColorBlock::swizzle().