API Docs for:
Show:

gs.MotionBlur Class

Stores motion-blur settings.

Constructor

gs.MotionBlur

(
  • [data=null]
)

Parameters:

  • [data=null] Object optional
    • Optional data-bundle to create the motion-blur settings from.

Item Index

Methods

Methods

fromObject

(
  • o
)
gs.Mask static

Creates a mask from an raw object. The object should contain all the properties defined by the Mask class.

Parameters:

  • o Object
    • The object with all necessary properties of the mask.

Returns:

gs.Mask:

The new created mask

set

(
  • [data=null]
)

Sets the motion-blur settings. If no data-bundle is specified

Parameters:

  • [data=null] Object optional
    • Optional data-bundle to create the motion-blur settings from.

toDataBundle

() Object

Serializes the motion-blur-settings into a data-bundle

Returns:

Object:

The data-bundle

Properties

color

gs.Color

The shadow color.

Default: Color.TRANSPARENT

delay

Number

The time in frame before a new motion-blur shadow is created.

Default: 2

dissolveSpeed

Number

Indicates how fast the motion-blur shadow dissolves.

Default: 3

enabled

Boolean

Indicates if the motion-blurring is enabled.

opacity

Number

The shadow start-opacity.

Default: 100