rgba-to-rgb

Color conversion function

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
rgba-to-rgb
261.0.24 years ago4 years agoMinified + gzip package size for rgba-to-rgb in KB

Readme

rgba-to-rgb
npm version CircleCI codecov Dependency Status devDependencies Status npm
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