UNPKG

react-native-svg

Version:
15 lines (14 loc) 425 B
"use strict"; 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