ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. dxGetPixelColor

Function

dxGetPixelColor

ClientDrawing (dx)Identical to MTA:SA

Returns the colour of pixel (x, y) from pixels in plain format.

Syntax

int, int, int, int dxGetPixelColor(string pixels, int x, int y)

Arguments

pixelsstring
plain pixels.
xint
X.
yint
Y.

Returns

r, g, b, a or false.

Example

local r, g, b = dxGetPixelColor(dxGetTexturePixels(screen), 10, 10)

See also