Appearance

An appearance object. This object manages the appearance items applied to a Shape.
 
Items

addItem:

returns AppearanceItem; input String

Creates and returns a new appearance item object of the specified type, adding it to the appearance item stack.

items

returns Array

Gets the array of appearance items in the appearance object.
 

AppearanceItem

This is the abstract base class for all of the following appearance item objects.
 
Enabled

Arrangement

Type

AppearanceFill

subclass of AppearanceItem

 
Fill Type

Fill Modes

Properties

blendMode

returns String; settable

Gets / Sets the blend mode of the fill.

color

returns Color; settable

Gets / Sets the fill color.

fillType

returns String

Gets the current fill mode - "color", "gradient", or "image". To change the fill type, set one of the color, gradient, or image properties directly.

gradient

_returns Gradient; settable

Gets / Sets the fill gradient.

image

_returns Image; settable

Gets / Sets the fill image.

type

returns String

Gets the type of this appearance item - "fill"
 

AppearanceStroke

subclass of AppearanceItem

Stroke Type

Settings

blendMode

returns String; settable

Gets / Sets the blend mode of the stroke.

color

returns Color; settable

Gets / Sets the color of the stroke.

dashArray

returns Array; settable

Gets / Sets the stroke's line dash style. The array of Float values adjusts the dash and gap spacing. Set this property to nil, or to an empty array, to remove the dash style.

strokeType

returns String; settable

Gets / Sets the type of stroke - "center", "inside", or "outside".

lineCap

returns String; settable

Gets / Sets the stroke's line cap style - "butt", "round", or "square".

lineJoin

returns String; settable

Gets / Sets the stroke's line join style - "miter", "round", or "bevel".

type

returns String

Gets the type of this appearance item - "stroke"

width

returns Float; settable

Gets / Sets the width of the stroke.

 

AppearanceDropShadow

subclass of AppearanceItem

 
Settings

blendMode

returns String; settable

Gets / Sets the blend mode of the shadow.

blur

returns Float; settable

Gets / Sets the radius of the shadow's blur.

color

returns Color; settable

Gets / Sets the color of the shadow.

offset

returns CGSize; settable

Gets / Sets the offset of the shadow.

type

returns String

Gets the type of this appearance item - "dropShadow"

 

AppearanceInnerShadow

subclass of AppearanceItem

Settings

blendMode

returns String; settable

Gets / Sets the blend mode of the shadow.

blur

returns Float; settable

Gets / Sets the radius of the shadow's blur.

color

returns Color; settable

Gets / Sets the color of the shadow.

offset

returns CGSize; settable

Gets / Sets the offset of the shadow.

type

returns String

Gets the type of this appearance item - "innerShadow"

 

AppearanceOuterGlow

subclass of AppearanceItem

Settings

blendMode

returns String; settable

Gets / Sets the blend mode of the glow.

blur

returns Float; settable

Gets / Sets the radius of the glow's blur.

color

returns Color; settable

Gets / Sets the color of the glow.

type

returns String

Gets the type of this appearance item - "outerGlow"
 

AppearanceInnerGlow

subclass of AppearanceItem

Settings

blendMode

returns String; settable

Gets / Sets the blend mode of the glow.

blur

returns Float; settable

Gets / Sets the radius of the glow's blur.

color

returns Color; settable

Gets / Sets the color of the glow.

type

returns String

Gets the type of this appearance item - "innerGlow"
 

Next: View