Adds a soft shadow to the filtered Object.
Constructor
new(distance:Float = 4., angle:Float = 0.785, color:Int = 0, alpha:Float = 1., radius:Float = 1., gain:Float = 1, quality:Float = 1., smoothColor:Bool = false)
Create a new Shadow filter.
Parameters:
distance | The offset of the shadow in the |
---|---|
angle | Shadow offset direction angle. |
color | The color of the shadow. |
alpha | Transparency value of the shadow. |
radius | The shadow glow distance in pixels. |
gain | The shadow color intensity. |
quality | The sample count on each pixel as a tradeoff of speed/quality. |
smoothColor | Produce gradient shadow when enabled, otherwise creates hard shadow without smoothing. |