@progress/kendo-e2e
Version:
Kendo UI end-to-end test utilities.
11 lines • 390 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.rgbToHex = rgbToHex;
function rgbToHex(color) {
const match = color.match(/\d+/g);
if (!match || match.length < 3)
return color;
const [r, g, b] = match.map(Number);
return '#' + [r, g, b].map(c => c.toString(16).padStart(2, '0')).join('');
}
//# sourceMappingURL=rgb-to-hex.js.map