Add Fill Layer
photopea_add_fill_layerAdd a non-destructive solid color fill layer covering the entire canvas. This adjustment-style layer can be toggled, recolored, or deleted without affecting other layers. Adjust its opacity or blend mode using set_layer_properties.
Instructions
Add a non-destructive solid color fill layer that covers the entire canvas. Unlike fill_selection, this creates a separate adjustment-style layer that can be toggled, recolored, or deleted without affecting other layers. Use set_layer_properties to change its opacity or blend mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for the fill layer in the layers panel | |
| type | Yes | Fill layer type (currently only 'solid' is supported) | |
| color | Yes | Fill color as hex string (e.g. #ff0000) |