lib/pixi/src/filters/twist/TwistFilter.js
function TwistFilter()
{
    core.AbstractFilter.call(this,
        // vertex shader
        null,
        // fragment shader
        fs.readFileSync(__dirname + '/twist.frag', 'utf8'),
        // custom uniforms
        {
            radius:     { type: '1f', value: 0.5 },
            angle:      { type: '1f', value: 5 },
            offset:     { type: 'v2', value: { x: 0.5, y: 0.5 } }
        }
    );
}
function TwistFilter()
{
    core.AbstractFilter.call(this,
        // vertex shader
        null,
        // fragment shader
        fs.readFileSync(__dirname + '/twist.frag', 'utf8'),
        // custom uniforms
        {
            radius:     { type: '1f', value: 0.5 },
            angle:      { type: '1f', value: 5 },
            offset:     { type: 'v2', value: { x: 0.5, y: 0.5 } }
        }
    );
}
function TwistFilter ( ) { core . AbstractFilter . call ( this , // vertex shader null , // fragment shader fs . readFileSync ( __dirname + '/twist.frag' , 'utf8' ) , // custom uniforms { radius : { type : '1f' , value : 0.5 } , angle : { type : '1f' , value : 5 } , offset : { type : 'v2' , value : { x : 0.5 , y : 0.5 } } } ) ; }
This filter applies a twist effect making display objects appear twisted in the given direction.

@class
@extends AbstractFilter
@memberof PIXI.filters
This filter applies a twist effect making display objects appear twisted in the given direction .