DgsCreateGradient

From Multi Theft Auto: Wiki
Revision as of 14:27, 16 December 2020 by Tracer (talk | contribs)
Jump to navigation Jump to search

This function is for creating a gradient for DGS elements.

Syntax

element dgsCreateShader ( float color1, float color2, [ float direction = 1 ] )

Required Arguments

  • color1: Gradient color 1
  • color2: Gradient color 2

Optional Arguments

  • direction: The direction in which gradient will follow. (1- left to right, 2- right to left, 3- top to bottom, 4- bottom to top)

Returns

Returns a shader if successful, false otherwise.