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 | 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: August 5, 2026 at 11:47 AMEdit this page