Methods
addBevelsToLayer(config) → {SG2D.Effects.Effect}
Добавляет эффект приподнятости
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
Properties
|
- Source:
Returns:
- Type
- SG2D.Effects.Effect
addDisplacementToLayer(config) → {SG2D.Effects.Effect}
Добавляет эффект искажения
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
Properties
|
- Source:
Returns:
- Type
- SG2D.Effects.Effect
addShadowsToLayer(config) → {SG2D.Effects.Effect}
Добавляет тени
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
Properties
|
- Source:
Returns:
- Type
- SG2D.Effects.Effect
Type Definitions
Effect
Эффект
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
type |
Number | Тип фильтра: SG2D.Effects.TYPE_SHADOWS | SG2D.Effects.TYPE_BEVELS | SG2D.Effects.TYPE_DISPLACEMENT |
layer |
string | Number | |
filter |
PIXI.Filter | |
options |
object | Специфические настройки фильтра |
- Source: