Options
All
  • Public
  • Public/Protected
  • All
Menu

A Color behavior that applies an interpolated or stepped list of values to the particle's tint property.

Example config:

{
type: 'color',
config: {
color: {
list: [{value: '#ff0000' time: 0}, {value: '#00ff00', time: 0.5}, {value: '#0000ff', time: 1}]
},
}
}

Hierarchy

  • ColorBehavior

Implements

Index

Constructors

Properties

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 = 'color'

Methods

  • updateParticle(particle: Particle): void

Generated using TypeDoc