Read texture pixels
bb_get_texture_pixelRead a rectangle of pixels from a texture to verify drawing results, returning rows of [r,g,b,a] values.
Instructions
Read a rectangle of pixels from a texture. Use this to verify what was drawn: it returns rows of [r,g,b,a].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| targets | Yes |