StartCameraFade: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|StartCameraFade(FromAlpha, ToAlpha, Duration [, HexColor])}} {{FuncParameters}} {{FuncParam|FromAl..."
 
Kuzkay (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Smoothly fade in or out, Setting CameraFade will overwrite any other started camera fades which were called before}}


{{FuncSyntax|StartCameraFade(FromAlpha, ToAlpha, Duration [, HexColor])}}
{{FuncSyntax|StartCameraFade(FromAlpha, ToAlpha, Duration [, HexColor])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|FromAlpha|__EDIT_ME__}}
{{FuncParam|FromAlpha|Starting alpha (0-1)}}
{{FuncParam|ToAlpha|__EDIT_ME__}}
{{FuncParam|ToAlpha|Alpha you want to fade to (0-1)}}
{{FuncParam|Duration |__EDIT_ME__}}
{{FuncParam|Duration |Duration of the fade in seconds}}
{{FuncParamOptional|HexColor|__EDIT_ME__}}
{{FuncParamOptional|HexColor|Hex color of the fade}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
StartCameraFade(1.0, 0.0, 4.0, "#000")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 11:52, 29 September 2019

StartCameraFade

Type: Function
Context: Client
Introduced: v1.0

Description

Smoothly fade in or out, Setting CameraFade will overwrite any other started camera fades which were called before

Syntax

StartCameraFade(FromAlpha, ToAlpha, Duration [, HexColor])

Parameters

  • FromAlpha
    Starting alpha (0-1)
  • ToAlpha
    Alpha you want to fade to (0-1)
  • Duration
    Duration of the fade in seconds
  • HexColor (optional)
    Hex color of the fade

Return Value

  • __EDIT_ME__

Example

StartCameraFade(1.0, 0.0, 4.0, "#000")

See also

__EDIT_ME__