Const
Extract RGB components from hex color value Re-export of colorUtils.hexToRgb for mobile component convenience
RGB components as object with r, g, b properties (0-255)
RGB추출
const { r, g, b } = getColorRGB(0x00ffff);// { r: 0, g: 255, b: 255 }// Use in CSS rgbaconst cssColor = `rgba(${r}, ${g}, ${b}, 0.8)`; Copy
const { r, g, b } = getColorRGB(0x00ffff);// { r: 0, g: 255, b: 255 }// Use in CSS rgbaconst cssColor = `rgba(${r}, ${g}, ${b}, 0.8)`;
Extract RGB components from hex color value Re-export of colorUtils.hexToRgb for mobile component convenience