TextLayer.createFill

Creates or replaces the solid fill on this text layer.

TextLayer.createFill() method

Creates or replaces the solid fill on this text layer.

Signature:

createFill(opts: SolidPaintOptions): SolidPaint;

Parameters

Parameter

Type

Description

opts

SolidPaintOptions

Options describing the fill color.

Returns: SolidPaint

The created (or replaced) fill paint.

Example

textLayer.createFill({ type: "SOLID", color: { r: 255, g: 0, b: 128 } });
Last updated: September 11, 2026 at 12:08 PMEdit this page