-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GenImageChecked
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Generate image: checked
| Parameter | Default Value | Note |
|---|---|---|
| width | 256 | |
| height | 256 | |
| checksX | 8 | |
| checksY | 8 | |
| col1 | WHITE | |
| col2 | BLACK |
| Condition | Return Value |
|---|---|
| (always) | map |
// 128x128 checkerboard with 16x16 squares
img = raylib.GenImageChecked(128, 128, 8, 8, raylib.WHITE, raylib.BLACK)
tex = raylib.LoadTextureFromImage(img)
raylib.UnloadImage img
raylib.BeginDrawing
raylib.ClearBackground raylib.BLACK
raylib.DrawTexture tex, 0, 0, raylib.WHITE
raylib.EndDrawing
raylib.UnloadTexture tex