Use particles.palette to import a named palette and quickly assign consistent colors.
string (palette id)When a matching palette is registered, the engine imports particle defaults:
paint.fill.enable: copied from the palette settingspaint.fill.color.value: set to palette colors when fill is enabledpaint.color.value: imported as shared fallback when provided by the palette variantpaint.stroke: imported from palette stroke settings when presentpaint: can be a single object or an array when the palette defines multiple variantsblend.enable: set to trueblend.mode: copied from palette blend modeRegistered palettes use the IPalette structure:
{
name: "My Palette",
background: "#0b1020",
blendMode: "screen",
colors: {
fill: {
enable: true,
value: ["#6ee7ff", "#8b5cf6", "#f472b6"],
},
},
}
colors can also be an array of variants mixing fill and/or stroke blocks.
{
"particles": {
"palette": "sunset",
"shape": {
"type": "circle"
}
}
}
particles.palette points to an unknown id, no palette import is applied.particles.paint.fill, particles.paint.stroke, or particles.blend override imported palette defaults.particles.palette affects only particle-level style options; it does not replace root-level preset loading.