API Docs for:
Show:

Component_TintAnimation Class

Module: gs

Executes a tint-animation on a game-object. The tint is executed on the game object's tone-property.

Item Index

Methods

start

(
  • tone
  • duration
  • easingType
  • [callback]
)

Starts the tint-animation.

Parameters:

  • tone gs.Tone

    The target-tone.

  • duration Number

    The duration in frames.

  • easingType Object

    The easing-type.

  • [callback] Function optional

    An optional callback called if the animation is finished.

toDataBundle

()

Serializes the tint-animation into a data-bundle.

update

()

Updates the tint-animation.