Skip to content

SetScreenFade

Description

Adds a screen fade effect based on the r, g, b and alpha values.

Parameters

  • r A value range of 0-255 for the color red.
  • g A value range of 0-255 for the color green.
  • b A value range of 0-255 for the color blue.
  • alpha A value range of 0-255 for transparency, 255 being no transparency.

Return Value

None.

Syntax

SetScreenFade(int r, int g, int b, int alpha)

Example

SetScreenFade(255, 255, 255, object.alpha)