Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #67 from dendipermadi/dendi
Browse files Browse the repository at this point in the history
added drop shadow filter class
  • Loading branch information
adireddy committed Oct 8, 2015
2 parents f3563bc + a28bdcd commit b4727b2
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions pixi/filters/dropshadow/DropShadowFilter.hx
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;
}

0 comments on commit b4727b2

Please sign in to comment.