Example
SINT.magic.doTwist(Container, [500, 500], 400, 2, false);
SINT.magic.doGlitch(game.stage);
var filter = new SINT.magic.BulgePinchFilter([0.5, 0.5], 200, 1.2);
Container.filters = [filter];
var bg_filter = new SINT.magic.HolesFilter(0x4a778a, 0xf3f9f1, 0.5, 1);
bgContainer.filters = [bg_filter];
Classes
- AlphaFilter
- BlurFilter
- BlurXFilter
- BlurYFilter
- BulgePinchFilter
- ColorMatrixFilter
- DisplacementFilter
- dye
- FluidFilter
- GlitchFilter
- HolesFilter
- TwistFilter
Methods
-
SINT.magic.doDisplacement
(container, density, speed, zoom, time, clear)
static
-
Name |
Type |
Default |
Description |
container |
SINT.Container
|
|
optional
|
density |
number
|
|
optional
|
speed |
number
|
|
optional
|
zoom |
number
|
|
optional
|
time |
number
|
|
optional
|
clear |
boolean
|
false
|
optional
|
-
SINT.magic.doDye
(container)
static
-
-
SINT.magic.doGlitch
(container, time, clear)
static
-
Name |
Type |
Default |
Description |
container |
SINT.Container
|
|
optional
|
time |
number
|
|
optional
|
clear |
boolean
|
false
|
optional
|
-
SINT.magic.doTwist
(container, offset, radius, time, clear)
static
-
Name |
Type |
Default |
Description |
container |
SINT.Container
|
|
optional
|
offset |
SINT.Point
|
Array.<number>
|
|
optional
|
radius |
number
|
|
optional
|
time |
number
|
|
optional
|
clear |
boolean
|
false
|
optional
|