Skip to content

raylib.ImageColorContrast

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Modify image color: contrast (-100 to 100)

Parameters

Parameter Default Value Note
image
contrast

Return value

None.

Notes

contrast is an integer from -100 to 100; fractional values are truncated.

Example

img = raylib.LoadImage("photo.png")
// Boost contrast by 30
raylib.ImageColorContrast img, 30
raylib.ExportImage img, "photo_contrast.png"
raylib.UnloadImage img

Clone this wiki locally