react-native-svg
Version:
SVG library for react-native
15 lines (14 loc) • 425 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.convertInt32ColorToRGBA = convertInt32ColorToRGBA;
function convertInt32ColorToRGBA(color) {
const r = color >> 16 & 255;
const g = color >> 8 & 255;
const b = color & 255;
const a = (color >> 24 & 255) / 255;
const alpha = a.toFixed(2);
return `rgba(${r},${g},${b},${alpha})`;
}
//# sourceMappingURL=convertInt32Color.js.map
;