Skip to content

raylib.SetPixelColor

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Set pixel color formatted into destination pointer

Parameters

Parameter Default Value Note
dstPtr
color
format

Return value

None.

Notes

Example

// Set the color of a raw pixel buffer
pixels = " " * 4  // 1 RGBA pixel placeholder
raylib.SetPixelColor pixels, raylib.RED, raylib.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8

Clone this wiki locally