Vuo  1.2.6
 All Classes Namespaces 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_objectVuoColor_getJson (const VuoColor value)
 Encodes value as a JSON object.
 
char * VuoColor_getShortSummary (const VuoColor value)
 Returns a short HTML representation of value.
 
char * VuoColor_getSummary (const VuoColor value)
 Returns a detailed HTML representation of value.
 
VuoText VuoColor_getHex (VuoColor color, VuoBoolean includeAlpha)
 Returns a hex string (like #445566ff) representing the color.
 
VuoColor VuoColor_makeWithHSLA (VuoReal hue, VuoReal saturation, VuoReal luminosity, VuoReal alpha)
 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.
 
VuoReal VuoColor_getLightness (VuoColor color)
 Returns the HSL lightness of the color, in the range [0,1].
 
VuoColor VuoColor_makeWithCMYKA (VuoReal c, VuoReal m, VuoReal y, VuoReal k, VuoReal a)
 Creates a new VuoColor from CMYK values.
 
void VuoColor_getCMYKA (VuoColor color, VuoReal *c, VuoReal *m, VuoReal *y, VuoReal *k, VuoReal *a)
 Get the Cyan, Magenta, Yellow, Black, and Alpha values from a VuoColor.
 
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.
 
bool VuoColor_areEqualWithinTolerance (const VuoColor a, const VuoColor b, const float tolerance)
 Like VuoColor_areEqual(), but permits color channel values to differ by up to tolerance.
 
bool VuoColor_isLessThan (const VuoColor a, const VuoColor b)
 Returns true if a < b.