- Documentation
- Client functions
- dxSetPixelColor
Function
dxSetPixelColor
Sets the colour of pixel (x, y) in plain pixels and changes the passed string. Images smaller than 4x4 are rejected.
Syntax
bool dxSetPixelColor(string pixels, int x, int y, int r, int g, int b [, int a = 255])Arguments
pixelsstringplainpixels.xint- X.
yint- Y.
rint- Red.
gint- Green.
bint- Blue.
aint, optional = 255- Opacity.
Returns
true on success.
Example
dxSetPixelColor(pixels, 5, 5, 255, 122, 34)
dxSetTexturePixels(tex, pixels)