Skip to content

Read pixels

Read the values of pixels on the screen.

Authors and contributors to this community extension: Bouh.


Provides expressions allowing to read the RGB value of pixels on screen.

Tip

Learn how to install new extensions by following a step-by-step guide.

Expressions

Expression Description
ReadPixels::ReadPixelAlpha(number, number) Return the alpha component of the pixel at the specified position.
🔢 Number Position X
🔢 Number Position Y
ReadPixels::ReadPixelBlue(number, number) Return the blue component of the pixel at the specified position.
🔢 Number Position X
🔢 Number Position Y
ReadPixels::ReadPixelGreen(number, number) Return the green component of the pixel at the specified position.
🔢 Number Position X
🔢 Number Position Y
ReadPixels::ReadPixelRed(number, number) Return the red component of the pixel at the specified position.
🔢 Number Position X
🔢 Number Position Y

This page is an auto-generated reference page about the Read pixels extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.