Pixel-Composer/scripts/buffer_surface/buffer_surface.gml
2022-11-03 17:44:49 +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;
}