PIXI.filters.BevelFilter

class BevelFilter extends PIXI.Filter

Bevel Filter.
originalfilter

See:

Constructor


new PIXI.filters.BevelFilter(options: object) → {}
Parameters:
Name Type Attributes Default Description
options object

<optional>

The optional parameters of the filter.

options.rotation number

<optional>

45

The angle of the light in degrees.

options.thickness number

<optional>

2

The tickness of the bevel.

options.lightColor number

<optional>

0xffffff

Color of the light.

options.lightAlpha number

<optional>

0.7

Alpha of the light.

options.shadowColor number

<optional>

0x000000

Color of the shadow.

options.shadowAlpha number

<optional>

0.7

Alpha of the shadow.

Summary


Properties from BevelFilter

Properties inherited from Filter

boolean
autoFit = true
PIXI.BLEND_MODES
blendMode = PIXI.BLEND_MODES.NORMAL
boolean
enabled

If enabled is true the filter is applied, if false it will not.

boolean
legacy
PIXI.MSAA_QUALITY
multisample

The samples of the filter.

number
padding
number
resolution
PIXI.State
state

The WebGL state the filter requires to render.

Properties inherited from Shader

PIXI.Program
program

Program that the shader uses.

Dict<any>
uniforms

Methods inherited from Filter

void
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES, _currentState: object)

Public Properties


lightAlpha BevelFilter.ts:113
lightAlpha: number = 0.7

Alpha of the light.

lightColor BevelFilter.ts:100
lightColor: number = 0xffffff

Color of the light.

rotation BevelFilter.ts:72
rotation: number = 45

The angle of the light in degrees.

shadowAlpha BevelFilter.ts:139
shadowAlpha: number = 0.7

Alpha of the shadow.

shadowColor BevelFilter.ts:126
shadowColor: number = 0x000000

Color of the shadow.

thickness BevelFilter.ts:86
thickness: number = 2

The tickness of the bevel.


Powered by webdoc!