Pixel-Composer/scripts/coltovec4/coltovec4.gml

3 lines
146 B
Text
Raw Normal View History

function colToVec4(color, alpha = 1) {
return [ color_get_red(color) / 255, color_get_green(color) / 255, color_get_blue(color) / 255, alpha ];
}