class MotionBlurPlugin
package com.gskinner.motion.plugins
implements IGTweenPlugin
Available on flash
Plugin for GTween. Automatically applies a motion blur effect when x and y are tweened. This plugin will create a new blur filter on the target, and remove it based on a saved index when the tween ends. This can potentially cause problems with other filters that create or remove filters.
Note: Because it works on the common x,y properties, and has a reasonably high CPU cost,
this plugin is disabled for all tweens by default (ie. its enabled property is set to false).
Set pluginData.MotionBlurEnabled
to true on the tweens you want to enable it for,
or set MotionBlurPlugin.enabled
to true to enable it by default for all tweens.
Supports the following pluginData
properties:
- MotionBlurEnabled: overrides the enabled property for the plugin on a per tween basis.
- MotionBlurData: Used internally.
Static variables
staticstrength:Float = 0.6
Specifies the strength to use when calculating the blur. A higher value will result in more blurring.