mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-15 06:53:59 +01:00
6 lines
166 B
Plaintext
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;
|
||
|
}
|