| Package | sandy.materials.attributes |
| Class | public final class MediumAttributes |
| Inheritance | MediumAttributes AAttributes |
| Property | Defined by | ||
|---|---|---|---|
| blurAmount : Number
Maximum amount of blur to add.
| MediumAttributes | ||
| color : uint
Medium color (32-bit value) at the point given by fadeFrom + fadeTo.
| MediumAttributes | ||
| fadeFrom : Vector
Transparent point in wx, wy and wz coordinates.
| MediumAttributes | ||
| fadeTo : Vector
Attenuation vector.
| MediumAttributes | ||
![]() | flags : uint
Returns the specific flags of this attribute.
| AAttributes | |
| Method | Defined by | ||
|---|---|---|---|
|
MediumAttributes(p_nColor:uint = 0xFFFFFFFF, p_oFadeFrom:Vector = null, p_oFadeTo:Vector = null, p_nBlurAmount:Number = 0)
Creates a new MediumAttributes object.
| MediumAttributes | ||
![]() |
Method called before the display list rendering.
| AAttributes | |
![]() |
Draws attribute to the graphics object.
| AAttributes | |
![]() |
Applies attribute to a sprite.
| AAttributes | |
![]() |
Method called right after the display list rendering.
| AAttributes | |
![]() |
Allows to proceed to an initialization to know when the polyon isn't lined to the material.
| AAttributes | |
![]() |
Remove all the initialization (opposite of init).
| AAttributes | |
| blurAmount | property |
public var blurAmount:NumberMaximum amount of blur to add. Warning: this feature is very expensive when shape useSingleContainer is false.
| color | property |
color:uint [read-write]Medium color (32-bit value) at the point given by fadeFrom + fadeTo. If this value is transparent, color gradient will be extrapolated beyond that point.
Implementation public function get color():uint
public function set color(value:uint):void
| fadeFrom | property |
| fadeTo | property |
fadeTo:Vector [read-write]Attenuation vector. This is the vector from transparent point to opaque point.
Implementation public function get fadeTo():Vector
public function set fadeTo(value:Vector):void
See also
| MediumAttributes | () | constructor |
public function MediumAttributes(p_nColor:uint = 0xFFFFFFFF, p_oFadeFrom:Vector = null, p_oFadeTo:Vector = null, p_nBlurAmount:Number = 0)Creates a new MediumAttributes object.
Parametersp_nColor:uint (default = 0xFFFFFFFF) — Medium color
|
|
p_oFadeFrom:Vector (default = null) — Attenuation vector (500 pixels beyond the screen by default).
|
|
p_oFadeTo:Vector (default = null) — Transparent point (at the screen by default).
|
|
p_nBlurAmount:Number (default = 0) — Maximum amount of blur to add
|
See also