PIXI.filters.GlowFilter
class GlowFilter extends PIXI.Filter
GlowFilter, originally by mishaa
codepen.


someSprite.filters = [
new GlowFilter({ distance: 15, outerStrength: 2 })
];
Constructor
new PIXI.filters.GlowFilter(options: number) → {}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| options | number |
<optional> |
Options for glow. |
|
| options.distance | number |
<optional> |
10 |
The distance of the glow. Make it 2 times more for resolution=2. It can't be changed after filter creation. |
| options.outerStrength | number |
<optional> |
4 |
The strength of the glow outward from the edge of the sprite. |
| options.innerStrength | number |
<optional> |
0 |
The strength of the glow inward from the edge of the sprite. |
| options.color | number |
<optional> |
0xffffff |
The color of the glow. |
| options.quality | number |
<optional> |
0.1 |
A number between 0 and 1 that describes the quality of the glow. The higher the number the less performant. |
| options.knockout | boolean |
<optional> |
false |
Toggle to hide the contents and only show glow. |
Summary
Properties from GlowFilter
| GlowFilterOptions |
Default values for options. |
| number |
|
| number |
|
| boolean |
|
| number |
|
Properties inherited from Filter
| boolean |
|
| PIXI.BLEND_MODES |
|
| boolean |
If enabled is true the filter is applied, if false it will not. |
| boolean |
|
| PIXI.MSAA_QUALITY |
The samples of the filter. |
| number |
|
| number |
|
| PIXI.State |
The WebGL state the filter requires to render. |
Properties inherited from Shader
| PIXI.Program |
Program that the shader uses. |
| Dict<any> |
|
Methods inherited from Filter
| void |
|
Public Properties
innerStrength: number = 0
The strength of the glow inward from the edge of the sprite.
outerStrength: number = 4
The strength of the glow outward from the edge of the sprite.