Rgb Color Info - Adobe 26001360 - Illustrator CS - PC Manual

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide

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
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
R/O
Value type
real
real
real
12 Aug 03
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
211

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents