List of available effect functions that can be combined to build a layer effect.

Referenced by: Effect, Scale Dependent Effect

Properties

Can be one of the following:

Effect functions brightness, contrast, grayscale, invert, opacity, saturate, and sepia

PropertyDetails
amountAmount of effect. A value of 0 leaves the input unchanged. grayscale, invert, sepia, and opacity effects accept a maximum amount of 1 which applies the effect at 100%. brightness, contrast, and saturate can accept amount above 1. Negative values are not allowed.
typeEffect type.
Valid values: brightness, contrast, grayscale, invert, opacity, saturate, sepia

Effect function hue-rotate

PropertyDetails
angleThe relative change in hue as an angle in degree. A value of 0 leaves the input unchanged. A positive hue rotation increases the hue value, while a negative one decreases the hue value.
typeEffect type.
Valid value of this property hue-rotate

Effect function blur

PropertyDetails
radiusThe radius of the blur in points. It defines the value of the standard deviation to the Gaussian function. Negative values are not allowed.
typeEffect type.
Valid value of this property blur

Effect function drop-shadow

PropertyDetails
blurRadiusThe radius of the blur in points. It defines the value of the standard deviation to the Gaussian function.
colorColor is represented as a four-element array. The four elements represent values for red, green, blue, and alpha in that order. Values range from 0 through 255.
typeEffect type.
Valid value of this property drop-shadow
xoffsetThe distance of the shadow on the x-axis in points.
yoffsetThe distance of the shadow on the y-axis in points.

Effect function bloom

PropertyDetails
radiusDetermines the radius of the blur. Negative values are not allowed. Leaves the pixels inside the radius untouched.
strengthThe intensity of the bloom effect. The higher the value, the brighter the glow. Negative values are not allowed.
thresholdThe mininum color luminosity for a pixel to bloom, where at 0 all pixels bloom and 1 only the pixels with 100% luminosity colors bloom.
typeEffect type.
Valid value of this property bloom

Additional information

grayscale Example

{
"type": "grayscale",
"amount": 1
}

invert Example

{
"type": "invert",
"amount": 0.5
}

sepia Example

{
"type": "invert",
"amount": 0.5
}

hue-rotate Example

{
"type": "hue-rotate",
"angle": 60
}

blur Example

{
"type": "blur",
"radius": 7.5
}

drop-shadow Example

{
"type": "drop-shadow",
"xoffset": 2,
"yoffset": 1,
"blurRadius": 2,
"color": [
0,
0,
0,
255
]
}

bloom Example

{
"type": "bloom",
"strength": 2,
"radius": 2,
"threshold": 0.6
}