Skip to content

raylib.ImageColorContrast

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Modify image color: contrast NOTE: Contrast values between -100 and 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