-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetPixelColor
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get color from a pixel from certain format
| Parameter | Default Value | Note |
|---|---|---|
| srcPtr | ||
| format |
| Condition | Return Value |
|---|---|
| (always) | map |
// Get the color of a single pixel from raw pixel data bytes
// (pixelData is a binary string containing raw RGBA bytes)
c = raylib.GetPixelColor(pixelData, raylib.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)
print c