Vuo  1.0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoColor.c File Reference

Description

VuoColor implementation.

Functions

VuoColor VuoColor_makeFromJson (json_object *js)
 Decodes the JSON object js to create a new value.
 
json_object * VuoColor_getJson (const VuoColor value)
 Encodes value as a JSON object.
 
char * VuoColor_getSummary (const VuoColor value)
 Returns a compact string representation of value (comma-separated components).
 
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.
 
VuoColor VuoColor_average (VuoList_VuoColor colors)
 Returns the weighted (by alpha) average of colors.
 
bool VuoColor_areEqual (const VuoColor value1, const VuoColor value2)
 Returns true if both colors have the same intensity and alpha values.