ShaderContrast (CMS)

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 13:37, 16 August 2014 by AFRLme (talk) (Created page with "<div class="toccolours mw-collapsible mw-collapsed tbl-ds"> <span class="bold">Function History</span> <div class="mw-collapsible-content"> <div class="alt-bg">Available since...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function History

Available since v4.0


Allows the user to adjust the screen contrast over a specified amount of time. The shader toolkit is needed for this function to work.


Syntax:

shaderContrast(contrast, delay)


Example 1: adjust screen contrast value

shaderContrast(1.1, 3000) -- adjust screen contrast over 3000 milliseconds
shaderContrast(1.1, 0) -- adjust screen contrast instantly


Example 2: restore default screen contrast value

shaderContrast(1, 3000) -- restore screen contrast over 3000 milliseconds
shaderContrast(1, 0) -- restore screen contrast value back to default instantly


Arguments

contrast: float (number)
Define the contrast value; number between 0 & 2 (1 = default)

delay: integer (number)
The amount of time to adjust the screen contrast value over in milliseconds (ms)


Flags

none


Return

none


Relevant Pages: to add...