Vital.sandbox
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

TypeNameDescription
floatvalueSaturation value to be applied

Returns

TypeNameDescription
boolstatustrue 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)

On this page