TextLayer.createFill
Creates or updates the single fill on this text layer.
TextLayer.createFill() method
Creates or updates the single fill on this text layer.
Signature:
createFill(opts: SolidPaintOptions): SolidPaint;Parameters
Parameter | Type | Description |
|---|---|---|
opts | Solid paint options. Gradients are not supported on text. |
Returns:
The text layer's fill paint.
Remarks
Text layers support only one fill. Calling this when a fill is already present updates the existing fill instead of appending a second one.
Last updated: October 8, 2026 at 10:45 AMEdit this page