Vital.sandbox
GFXAdjustment

gfx.adjustment.set_contrast

Client

Sets the contrast level of the adjustment post-processing effect


Syntax

local status = gfx.adjustment.set_contrast(value)

Parameters

TypeNameDescription
floatvalueContrast value to be applied

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

--Set contrast to default
gfx.adjustment.set_contrast(1.0)

--Increase contrast
gfx.adjustment.set_contrast(1.3)

On this page