Adobe 26001360 Scripting Guide - Page 211
RGB color info, Notes, Example 56.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 211 highlights
Adobe Illustrator CS Scripting Guide 211 RGB color info An RGB color specification, used to specify a RGB color in conjunction with the color property. Note: The RGB color info class inherits all valid properties from the color info class. Table 4.79 RGB color info - Properties Property red green blue R/O Value type real real real What it is The red color value as a value in the range 0.0-255.0; default: 0.0 The green color value as a value in the range 0.0-255.0; default: 0.0 The blue color value as a value in the range 0.0-255.0; default: 0.0 Notes If the color space of a document is CMYK and you specify the color value for a page item in that document using RGB color info, Illustrator will translate the RGB color specification into a CMYK color specification. The same thing happens if the document's color space is RGB and you specify colors using CMYK color info. Since this translation can cause information loss you should specify colors using the color info class that matches the document's color space. Example 56.1 The following example demonstrates how the default stroke color of the current document can be set to a RGB color specification. -- Set the default stroke color of document 1 to yellow tell application "Illustrator CS" set default stroke color of document 1 to {red:255, green:255, blue:0} end tell 12 Aug 03