Script Library Documentation - libColor

Version 0.4.1

Contributing Authors

Monte Goulding mailto:monte@sweattechnologies.com http://www.sweattechnologies.com

Sarah Reichelt mailto:sarahr@genesearch.com.au

Roger Eller mailto:roger.e.eller@sealedair.com

James Cass mailto:james.cass@sealedair.com

Direction from Ken Ray and Alejandro Tejada

Library Purpose and General Documetation

This library provides color reference conversion functions.

Note that HSV, CMYK and Pantone are supported in the convert function but are not supported by Revolution as a color references.

It also provides a handler to build a color reference so if a new version of rev includes more colors in the color names then just call: "priv_libColor_BuildColorNameReference" from the message box.

Functions and Handlers

libColor_Convert (function)

Parameters

the color reference, what you want to covert it to, what you are converting from (same format types as what you are converting to)

The final (convert from) parameter is optional and only needed for converting from HSV.

RGB and CMYK decimal formats with space as the item delimiter. For example "0.25 0.5 0.75".

Returns

converted color reference

Error report = "Unknown Color Reference"

Documentation

Supported Color Reference Types

"text" | "colorName" | "name", "RGB", "RGB Decimal", "HEX" | "HTML" ,"HSV" or "CMYK", "CMYK Decimal",

RGB and CMYK decimal formats use space as the item delimiter. For example "0.25 0.5 0.75".