GFXAdjustment
gfx.adjustment.set_saturation
Client
Sets the saturation level of the adjustment post-processing effect
Syntax
local status = gfx.adjustment.set_saturation(value)Parameters
| Type | Name | Description |
|---|---|---|
float | value | Saturation value to be applied |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
--Set saturation to default
gfx.adjustment.set_saturation(1.0)
--Desaturate (greyscale)
gfx.adjustment.set_saturation(0.0)