[[include:Options/Particles/Links.md]]

Implements

Constructors

Properties

blink: boolean

Enables random blinking, if set to true and ILinks.color is set to "random" the link will have a random color each frame resulting in a blinking animation

Link line color, can be a string or an IOptionsColor object. If the value is "random", if ILinks.blink is true sets a random color each frame, if ILinks.consent is true a random color is used for all links, if ILinks.blink and ILinks.consent are false the color will be a gradient with the two linked particles color

consent: boolean

If enabled the links will have a single random color, if ILinks.color value is "random"

distance: number

Sets the maximum particles link line length

enable: boolean

Enables the particles links

frequency: number
id?: string

Sets the link id, if two particles have a different link id they won't link together

opacity: number

Sets the maximum link opacity

shadow: LinksShadow

Enables the link line shadow Shadows in canvas are really heavy and this can affect negatively on performances, use with caution

triangles: LinksTriangle

Fills the triangles made by link lines

warp: boolean

Enable link lines warp, linking particles between edges like there's a warp portal at the edges

width: number

Sets the link line width

Methods