-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageColorReplace
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Modify image color: replace color
| Parameter | Default Value | Note |
|---|---|---|
| image | ||
| color | ||
| replace |
None.
img = raylib.GenImageColor(64, 64, raylib.RED)
// Replace all red pixels with blue
raylib.ImageColorReplace img, raylib.RED, raylib.BLUE
raylib.ExportImage img, "blue.png"
raylib.UnloadImage img