Options
All
  • Public
  • Public/Protected
  • All
Menu

A Scale behavior that applies an interpolated or stepped list of values to the particle's x & y scale.

Example config:

{
type: 'scale',
config: {
scale: {
list: [{value: 0, time: 0}, {value: 1, time: 0.25}, {value: 0, time: 1}],
isStepped: true
},
minMult: 0.5
}
}

Hierarchy

  • ScaleBehavior

Implements

Index

Constructors

  • Parameters

    • config: { minMult: number; scale: ValueList<number> }
      • minMult: number

        A value between minimum scale multipler and 1 is randomly generated and multiplied with each scale value to provide the actual scale for each particle.

      • scale: ValueList<number>

        Scale of the particles, with a minimum value of 0

    Returns ScaleBehavior

Properties

list: PropertyList<number>
minMult: number
order: BehaviorOrder = BehaviorOrder.Normal

Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting special treatment before the Emitter's transformation is applied.

editorConfig: BehaviorEditorConfig = null
type: string = 'scale'

Methods

  • updateParticle(particle: Particle): void

Generated using TypeDoc