rgba-to-rgb
v1.0.2
Published
Color conversion function
Downloads
7,222
Readme
rgba-to-rgb
Color conversion function
Usage
import rgbaToRgb from 'rgba-to-rgb'
const RGB_background = 'rgb(255, 120, 5)'
const RGBA_color = 'rgba(123, 233, 33, 0.5)'
const RGB_color = rgbaToRgb(RGB_background, RGBA_color) // rgb(189, 177, 19)
Credits
Based on rgba2rgb example by @marcodiiga