Skip to content

raylib.SetPixelColor

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Write a color, in the given pixel format (a PIXELFORMAT_* value), to the start of a RawData

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