mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
3 lines
No EOL
146 B
Text
3 lines
No EOL
146 B
Text
function colToVec4(color, alpha = 1) {
|
|
return [ color_get_red(color) / 255, color_get_green(color) / 255, color_get_blue(color) / 255, alpha ];
|
|
} |