This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from dendipermadi/dendi
added drop shadow filter class
- Loading branch information
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package pixi.filters.dropshadow; | ||
|
||
import pixi.core.renderers.webgl.filters.AbstractFilter; | ||
import pixi.core.renderers.webgl.WebGLRenderer; | ||
|
||
@:native("PIXI.filters.DropShadowFilter") | ||
extern class DropShadowFilter extends AbstractFilter { | ||
/** | ||
* The DropShadowFilter applies a Gaussian blur to an object. | ||
* The strength of the blur can be set for x- and y-axis separately. | ||
* | ||
* @author goodboydigital | ||
* @class | ||
* @extends AbstractFilter | ||
* @memberof PIXI.filters | ||
*/ | ||
function new(); | ||
|
||
|
||
/** | ||
* Sets the strength of both the blurX and blurY properties simultaneously | ||
* | ||
* @member {Float} | ||
* @memberOf DropShadowFilter# | ||
* @default 2 | ||
*/ | ||
var blur:Float; | ||
|
||
/** | ||
* Sets the strength of the blurX property | ||
* | ||
* @member {Float} | ||
* @memberOf DropShadowFilter# | ||
* @default 2 | ||
*/ | ||
var blurX:Float; | ||
|
||
/** | ||
* Sets the strength of the blurY property | ||
* | ||
* @member {Float} | ||
* @memberOf DropShadowFilter# | ||
* @default 2 | ||
*/ | ||
var blurY:Float; | ||
|
||
|
||
/** | ||
* Sets the color of the shadow | ||
* | ||
* @member {UInt} | ||
* @memberOf DropShadowFilter# | ||
* @default 0x000000 | ||
*/ | ||
var color:UInt; | ||
|
||
/** | ||
* Sets the alpha of the shadow | ||
* | ||
* @member {Float} | ||
* @memberOf DropShadowFilter# | ||
* @default 0.75 | ||
*/ | ||
var alpha:Float; | ||
|
||
/** | ||
* Sets the distance of the shadow | ||
* | ||
* @member {Float} | ||
* @memberOf DropShadowFilter# | ||
* @default 10 | ||
*/ | ||
var distance:Float; | ||
|
||
|
||
/** | ||
* Sets the angle of the shadow | ||
* | ||
* @member {Float} | ||
* @memberOf DropShadowFilter# | ||
* @default 45 * Math.PI / 180 | ||
*/ | ||
var angle:Float; | ||
} |