API Docs for:
Show:

gs.WobbleEffect Class

Describes a wobble-effect. A wobble-effects animates the texture-coordinates using sin/cos functions to generate a "wobble"-like effect.

Constructor

gs.WobbleEffect

()

Item Index

Methods

Methods

fromObject

(
  • o
)
gs.WobbleEffect static

Creates a wobble-effect from an raw object. The object should contain all the properties defined by the WobbleEffect class.

Parameters:

  • o Object
    • The object with all necessary properties of the wobble-effect.

Returns:

gs.WobbleEffect:

The new created wobble-effect.

Properties

horizontal

Boolean

Indicates if wobble-effect is horizontally.

Default: true

power

Number

The wobble-power.

Default: 0.001

speed

Number

The wobble-speed.

Default: 0.1

vertical

Boolean

Indicates if wobble-effect is vertically.

Default: true