-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageDrawPixel
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Draw pixel within an image NOTE: Compressed image formats not supported
| Parameter | Default Value | Note |
|---|---|---|
| dst | ||
| x | 0 | |
| y | 0 | |
| color | WHITE |
None.
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