Name | Type | Attributes | Description |
---|---|---|---|
options |
OutlineFilterOptions |
<optional> |
Options for the OutlineFilter constructor. |
Example
someSprite.filters = [new OutlineFilter(2, 0x99ff99)];
Extends
- Filter *
Members
DEFAULT_OPTIONS OutlineFilterOptions staticreadonly
Default values for options.
The maximum number of samples for rendering outline.
- Default Value:
- 100
The minimum number of samples for rendering outline.
- Default Value:
- 1
Coefficient for alpha multiplication
- Default Value:
- 1
The color value of the ambient color
- Default Value:
- 0x000000
Example
[1.0, 1.0, 1.0] = 0xffffff
Whether to only render outline, not the contents.
- Default Value:
- false
The quality of the outline from 0
to 1
.
Using a higher quality setting will result in more accuracy but slower performance
- Default Value:
- 0.1
The thickness of the outline
- Default Value:
- 1