angleVar
angleVar: number = 30
Optionalbounce
bounce?: boolean = false
bounceFriction
bounceFriction: number = 0
drawShape
drawShape: "rect" | "point" | "polygon" = "rect"
durationFrames
durationFrames: number = Infinity
endColor
endColor: string = "rgba(50, 50, 50, 0)"
endScale
endScale: number = 0
fill
fill: string = "none"
gravityX
gravityX: number = 0
gravityY
gravityY: number = 0
height
height: number = 100
particleHeight
particleHeight: number = 10
particleLife
particleLife: number = 2
particleWidth
particleWidth: number = 10
pivot
pivot: [number, number] = ...
position
position: [number, number] = ...
radius
radius: number = 50
rotation
rotation: number = 0
spawnRate
spawnRate: number = 100
speedVar
speedVar: number = 50
startColor
startColor: string = "rgba(255, 100, 0,0)"
startFrame
startFrame: number = 0
startScale
startScale: number = 1
stroke
stroke: string = "black"
strokeWidth
strokeWidth: number = 0
type
type: string = "Animation"
Base class for drawable and animatable shapes