Where stroke is drawn relative to the vector outline.
A solid color, gradient, or image texture that can be applied as fills or strokes.
{ isVisible : Basics.Bool
, opacity : Basics.Float
, color : Color
, blendMode : BlendMode
}
Solid color paint.
{ isVisible : Basics.Bool
, opacity : Basics.Float
, scaleMode : ScaleMode
, blendMode : BlendMode
}
A image-textured paint.
Image scaling mode.
{ isVisible : Basics.Bool
, opacity : Basics.Float
, start : Math.Vector2.Vec2
, stop : Math.Vector2.Vec2
, width : Math.Vector2.Vec2
, colorStops : List ColorStop
, blendMode : BlendMode
}
A color gradient paint. In particular:
start
: position of the start handle for the gradient (value 0, for the purposes of calculating gradient stops)stop
: position of the end handle for the gradient (value 1),width
: width of the gradient (only relevant for non-linear gradients)These three values are stored in normalized object space. Normalized object space is if the top left corner of the bounding box of the object is 0, 0
and the bottom right is 1,1
.
colorStops
: positions of key points along the gradient axis with the colors anchored there. Colors along the gradient are interpolated smoothly between neighboring gradient stops.{ position : Basics.Float
, color : Color
}
A position color pair representing a gradient stop.
{ fontFamily : String
, fontPostScriptName : String
, isItalic : Basics.Bool
, fontWeight : Basics.Int
, fontSize : Basics.Float
, horizontalAlign : TextHorizontalAlign
, verticalAlign : TextVerticalAlign
, letterSpacing : Basics.Float
, fills : List Paint
, lineHeightPx : Basics.Float
, lineHeightPercent : Basics.Float
}
Character formatting.
{ fontFamily : Maybe String
, fontPostScriptName : Maybe String
, isItalic : Maybe Basics.Bool
, fontWeight : Maybe Basics.Int
, fontSize : Maybe Basics.Float
, horizontalAlign : Maybe TextHorizontalAlign
, verticalAlign : Maybe TextVerticalAlign
, letterSpacing : Maybe Basics.Float
, fills : Maybe (List Paint)
, lineHeightPx : Maybe Basics.Float
, lineHeightPercent : Maybe Basics.Float
}
Character formatting overrides.
Only relevant fields are set while specifying an override. All other fields are supposed
to be found in the master TextStyle
record.
How a layer blends with layers below.
A visual effect such as a shadow or blur.
{ isVisible : Basics.Bool
, radius : Basics.Float
}
Blur visual effect.
{ isVisible : Basics.Bool
, radius : Basics.Float
, color : Color
, blendMode : BlendMode
, offset : Math.Vector2.Vec2
}
Shadow visual effect.