Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 172
SolidColor
A color definition used in the document. Maps a color to equivalents in all available color models.
Used in Application.backgroundColor and foregroundColor properties, in Channel.color, in
ColorSampler
.color, and in TextItem.color
Passed to PathItem.fillPath(), Selection.fill(), and Selection.stroke().
Properties
Methods
Property Value type What it is
cmyk
CMYKColor
Read-write. The CMYK color mode.
gray
GrayColor
Read-write. The Grayscale color mode.
hsb
HSBColor
Read-write. The HSB color mode.
lab
LabColor
Read-write. The LAB color mode.
model
ColorModel
Read-write. The color model.
nearestWebColor
RGBColor
Read-only. The nearest web color to the current color.
rgb
RGBColor
Read-write. The RGB color mode.
typename
string
Read-only. The class name of the referenced SolidColor
object.
Method Parameter type Returns What it does
isEqual
(color)
SolidColor
boolean
True if the SolidColor object is visually
equal to the specified color.