Name | Type | Attributes | Description |
---|---|---|---|
options |
GlowFilterOptions |
<optional> |
Options for the GlowFilter constructor. |
Example
someSprite.filters = [
new GlowFilter({ distance: 15, outerStrength: 2 })
];
Extends
- Filter
Members
DEFAULT_OPTIONS GlowFilterOptions staticreadonly
Default values for options.
The alpha of the glow
- Default Value:
- 1
The color of the glow.
- Default Value:
- 0xFFFFFF
Only draw the glow, not the texture itself
- Default Value:
- false
The strength of the glow inward from the edge of the sprite.
- Default Value:
- 0
Only draw the glow, not the texture itself
- Default Value:
- false
The strength of the glow outward from the edge of the sprite.
- Default Value:
- 4
A number between 0 and 1 that describes the quality of the glow. The higher the number the less performant
- Default Value:
- 0.1