Package | km.filters |
Class | public final class ReflectionFilter |
Inheritance | ReflectionFilter ![]() |
import km.filters.*; var shape:Shape = new Shape(); shape.graphics.beginFill(0xc00000); shape.graphics.drawRect(0, 0, 40, 40); addChild(shape); var filter:ReflectionFilter = new ReflectionFilter(40); shape.filters = [filter];
Property | Defined by | ||
---|---|---|---|
reflectionLines : int The amount of lines of the reflection.
| ReflectionFilter | ||
reflectionMaxAlpha : Number The maximum alpha of the reflection.
| ReflectionFilter | ||
splitLine : int The line where to start the reflection.
| ReflectionFilter |
Method | Defined by | ||
---|---|---|---|
ReflectionFilter(splitLine:Number = 128, reflectionLines:Number = 64, reflectionMaxAlpha:Number = 0.4)
Initializes a new ReflectionFilter instance with the specified parameters.
| ReflectionFilter | ||
clone():BitmapFilter
Returns a copy of this filter object.
| ReflectionFilter |
reflectionLines | property |
reflectionLines:int
[read-write]The amount of lines of the reflection. Valid values are from 2 to 4096. The default value is 64.
Implementation public function get reflectionLines():int
public function set reflectionLines(value:int):void
reflectionMaxAlpha | property |
reflectionMaxAlpha:Number
[read-write]The maximum alpha of the reflection. Valid values are from 0.01 to 0.99 (floating point). The default value is 0.40.
Implementation public function get reflectionMaxAlpha():Number
public function set reflectionMaxAlpha(value:Number):void
splitLine | property |
splitLine:int
[read-write] The line where to start the reflection. Valid values are from 2 to 4096. The default value is 128.
This value has to be equal to or smaller than the height of the object the filter is applied to.
public function get splitLine():int
public function set splitLine(value:int):void
ReflectionFilter | () | constructor |
public function ReflectionFilter(splitLine:Number = 128, reflectionLines:Number = 64, reflectionMaxAlpha:Number = 0.4)
Initializes a new ReflectionFilter instance with the specified parameters.
ParameterssplitLine:Number (default = 128 )
|
|
reflectionLines:Number (default = 64 )
|
|
reflectionMaxAlpha:Number (default = 0.4 )
|
clone | () | method |
public override function clone():BitmapFilter
Returns a copy of this filter object.
ReturnsBitmapFilter |