Defines particle painting options grouped under paint.
| Key | Type | Notes |
|---|---|---|
color |
IColor |
Default fill/stroke color fallback |
fill |
IColorFill |
Inner particle color options |
stroke |
SingleOrMultiple |
Outline options, see IStroke |
paint.color is used as the base color for both fill and stroke when their own color is not set. If paint.fill.color or
paint.stroke.color are provided, they override paint.color.
paint.color.value: "#fff"paint.fill.enable: trueThese defaults are initialized in particle options and keep the historical behavior: particles are white and filled unless overridden.
fill detailspaint.fill controls particle fill color and related animation settings.
{
"paint": {
"color": {
"value": "#22d3ee"
},
"fill": {
"enable": true,
"color": {
"value": ["#60a5fa", "#a78bfa", "#f472b6"]
}
}
}
}
stroke detailspaint.stroke controls particle outline color and width.
{
"paint": {
"color": {
"value": "#14b8a6"
},
"stroke": {
"width": 2,
"color": {
"value": "#ffffff"
}
}
}
}