Rgbcolor - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

434

RGBColor

A RGB color specification, used to apply an RGB color to a layer or art item.
Table 5.133 RGBColor — Properties
Property
Application
Blue
Green
Red
Notes
If the DocumentColorSpace of a document is aiDocumentCMYKColor and you specify
the color value for a PageItem in that document using RGBColor, Illustrator will translate the
RGB color specification into a CMYK color specification. The same thing happens if the
document's DocumentColorSpace is aiDocumentRGBColor and you specify colors
using CMYKColor. Since this translation can cause information loss you should specify colors
using the class that matches the document's DocumentColorSpace.
Example 72.1
This script sets the default fill color of the frontmost document to yellow using an RGB object. If
the color space of the frontmost document is CMYK, then Illustrator will regard the RGB fill
color as a CMYK color although it is specified using RGB.
Dim appRef As New Illustrator.Application
Dim newFillColor As New Illustrator.RGBColor
'Define the new color
newFillColor.Red = 255#
newFillColor.Green = 255#
newFillColor.Blue = 0
R/O
Value type
R/O
Application object
Double
Double
Double
12 Aug 03
Visual Basic Reference
What it is
The Illustrator Application object
The blue color value as a value in the
range 0.0–255.0
The green color value as a value in the
range 0.0–255.0
The red color value as a value in the range
0.0–255.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents