Vuo  0.4.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions

Description

A color, with component values specifying red, green, blue, and alpha (opacity).

Classes

struct  VuoColor
 A color, with component values specifying red, green, blue, and alpha (opacity). More...
 

Functions

VuoColor VuoColor_valueFromString (const char *initializer)
 Parses the C string initializer, expected to contain a comma-separated quadruplet of decimal numbers, to create a new VuoColor.
 
char * VuoColor_stringFromValue (const VuoColor value)
 Serializes value as a C string.
 
char * VuoColor_summaryFromValue (const VuoColor value)
 Same as VuoColor_stringFromValue() — always shows the full value, since it's guaranteed to be pretty short.
 
VuoColor VuoColor_makeWithHSLA (VuoReal h, VuoReal s, VuoReal l, VuoReal a)
 Returns a VuoColor with the given hue, saturation, lightness, alpha.
 
void VuoColor_getHSLA (VuoColor color, VuoReal *h, VuoReal *s, VuoReal *l, VuoReal *a)
 Gets the hue, saturation, lightness, hue, alpha of a color.
 

Class Documentation

struct VuoColor
Class Members
float a
float b
float g
float r

Function Documentation

void VuoColor_getHSLA ( VuoColor  color,
VuoReal h,
VuoReal s,
VuoReal l,
VuoReal a 
)

Gets the hue, saturation, lightness, hue, alpha of a color.

Each value is in the range [0,1].

VuoColor VuoColor_makeWithHSLA ( VuoReal  h,
VuoReal  s,
VuoReal  l,
VuoReal  a 
)

Returns a VuoColor with the given hue, saturation, lightness, alpha.

Assumes each value is in the range [0,1].

char * VuoColor_stringFromValue ( const VuoColor  value)

Serializes value as a C string.

Example:
0,0,0,0
VuoColor VuoColor_valueFromString ( const char *  initializer)

Parses the C string initializer, expected to contain a comma-separated quadruplet of decimal numbers, to create a new VuoColor.

Example:
0,0,0,0