Skip to content

struct

Modes

pub struct Modes {
    pub grab: bool,
    pub bubble: bool,
    pub repulse: bool,
    pub push: bool,
    pub remove: bool,
}

Pointer reactions, for hovering or clicking.

Fields

grab

pub grab: bool

Lines from the pointer to nearby particles (hover).

bubble

pub bubble: bool

Nearby particles grow and change opacity.

repulse

pub repulse: bool

Nearby particles are pushed away.

push

pub push: bool

Add particles where clicked (click).

remove

pub remove: bool

Remove particles (click).

Methods

parse

pub fn parse(s: &str) -> Modes

Space- or comma-separated mode names; none (or anything unknown) adds nothing.

Trait implementations