Set this property to false for creating an open shape
Set this property to false for creating an empty shape
Shape options
Shape type
This load method is used to load data in the classes used as generic
Optional
data: RecursivePartial<IShape>the input options
Shape
The Shape section of Particles options has been reworked a lot but for now it's still compatible with all your old configurations.
If you want to customize more you particles you should use the new syntax
type
string
array
"circle"
"line"
"edge"
"triangle"
"polygon"
"star"
"image"
["circle", "triangle", "image"]
options
object
Shape Options
Shape
options
is a dynamic object, is properties are the shape types, even the custom one you created (as you can read above) and the values are objects or arrays that will be used to draw the particles.This will give us more customization, you can now specify a shape type with a
particles
property that lets you customize almost all the properties of the original object.shape
andnumber
will be ignored for obvious reasons.The shape types you find described above are the only implemented here, if you use an external custom shape ask the creator.
All the shapes have in common these properties
particles
object
fill
boolean
true
/false
close
boolean
true
/false
Below you'll find the options of some shape types that need additional properties, you can add to the object below the 3 properties above.
Polygon
Star
Character / Char
Image