Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PropertyList<V>

Singly linked list container for keeping track of interpolated properties for particles. Each Particle will have one of these for each interpolated property.

Type parameters

  • V

Hierarchy

  • PropertyList

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

current

current: PropertyNode<V>

The current property node in the linked list.

ease

A custom easing method for this list.

param

The interpolation value from 0-1.

returns

The eased value, also from 0-1.

interpolate

interpolate: (lerp: number) => number

Calculates the correct value for the current interpolation value. This method is set in the reset() method.

param

The interpolation value from 0-1.

returns

The interpolated value. Colors are converted to the hex value.

Type declaration

    • (lerp: number): number
    • Parameters

      • lerp: number

      Returns number

Private isColor

isColor: boolean

If this list manages colors, which requires a different method for interpolation.

next

next: PropertyNode<V>

The next property node in the linked list. Stored separately for slightly less variable access.

Methods

reset

Generated using TypeDoc