Pixel-Composer/scripts/buffer_function/buffer_function.gml
2023-02-19 08:13:19 +07:00

6 lines
166 B
Plaintext

function buffer_get_color(buffer, _x, _y, w, h) {
buffer_seek(buffer, buffer_seek_start, (w * _y + _x) * 4);
var c = buffer_read(buffer, buffer_u32);
return c;
}