mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
6 lines
No EOL
166 B
Text
6 lines
No EOL
166 B
Text
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;
|
|
} |