Pixel-Composer/scripts/buffer_surface/buffer_surface.gml

6 lines
166 B
Text
Raw Normal View History

2022-11-03 11:44:49 +01:00
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;
}