External module "ParticleImage/ParticleImage"
Type aliases
PixelOptions
Pixel
Options: { image: Array2D<RGBA>; x: number; y: number }
Functions
Const ParticleImage
- ParticleImage(__namedParameters: { backgroundColor: string; creationDuration: undefined | number; creationTimingFn: undefined | ((t: number) => number); deathDuration: undefined | number; deathTimingFn: undefined | ((t: number) => number); entropy: number; height: number; maxParticles: number; mouseDownForce: undefined | ((x: number, y: number) => ParticleForce); mouseDownForceDuration: number; mouseMoveForce: undefined | ((x: number, y: number) => ParticleForce); mouseMoveForceDuration: number; onImageStateChange: undefined | ((state: ImageState) => void); onUniverseStateChange: undefined | ((state: UniverseState, universe: Universe) => void); otherProps: otherProps; particleOptions: ParticleOptions; scale: number; src: string; style: CSSProperties; touchMoveForce: undefined | ((x: number, y: number) => ParticleForce); touchMoveForceDuration: number; width: number }): Element
-
Parameters
-
__namedParameters: { backgroundColor: string; creationDuration: undefined | number; creationTimingFn: undefined | ((t: number) => number); deathDuration: undefined | number; deathTimingFn: undefined | ((t: number) => number); entropy: number; height: number; maxParticles: number; mouseDownForce: undefined | ((x: number, y: number) => ParticleForce); mouseDownForceDuration: number; mouseMoveForce: undefined | ((x: number, y: number) => ParticleForce); mouseMoveForceDuration: number; onImageStateChange: undefined | ((state: ImageState) => void); onUniverseStateChange: undefined | ((state: UniverseState, universe: Universe) => void); otherProps: otherProps; particleOptions: ParticleOptions; scale: number; src: string; style: CSSProperties; touchMoveForce: undefined | ((x: number, y: number) => ParticleForce); touchMoveForceDuration: number; width: number }
-
backgroundColor: string
-
creationDuration: undefined | number
-
creationTimingFn: undefined | ((t: number) => number)
-
deathDuration: undefined | number
-
deathTimingFn: undefined | ((t: number) => number)
-
entropy: number
-
height: number
-
maxParticles: number
-
mouseDownForce: undefined | ((x: number, y: number) => ParticleForce)
-
mouseDownForceDuration: number
-
mouseMoveForce: undefined | ((x: number, y: number) => ParticleForce)
-
mouseMoveForceDuration: number
-
onImageStateChange: undefined | ((state: ImageState) => void)
-
onUniverseStateChange: undefined | ((state: UniverseState, universe: Universe) => void)
-
-
-
scale: number
-
src: string
-
style: CSSProperties
-
touchMoveForce: undefined | ((x: number, y: number) => ParticleForce)
-
touchMoveForceDuration: number
-
width: number
Returns Element