Specifying Colors for Properties

A property of type "Color" can take one of several forms.

The forms are:

An example of this is the following command to set the color property of the SOLID COLOR TOOL of an Effect to purple(50% red/50% blue):

   effect = CwCreateEffect('Ellipse', 'Solid Color')

   tool = CwGetTool(effect)

   call CWSetProperty tool, "Color", "(128,0,128)"

Below is a quick reference to some common colors and how they would be referred to using the above number systems:

Color Hexdecimal Decimal
White '#FFFFFF' (255,255,255)
Black '#000000' (0,0,0)
Red '#FF0000' (255,0,0)
Green '#00FF00' (0,255,0)
Blue '#0000FF' (0,0,255)
Purple '#800080' (128,0,128)
Cyan '#00FFFF' (0,255,255)
Gold '#FFD700' (248,212,0)
Teal '#008080' (0,128,128)


Object Properties

Index