Skip to content

raylib.ImageDrawPixel

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw pixel within an image NOTE: Compressed image formats not supported

Parameters

Parameter Default Value Note
dst
x 0
y 0
color WHITE

Return value

None.

Notes

Example

img = raylib.GenImageColor(64, 64, raylib.BLACK)
// Set pixel at (10, 10) to red
raylib.ImageDrawPixel img, 10, 10, raylib.RED
raylib.ExportImage img, "dot.png"
raylib.UnloadImage img

Clone this wiki locally