Neodymium Plated Magnet

    rgba-to-rgb
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    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

    Keywords

    Install

    npm i rgba-to-rgb

    DownloadsWeekly Downloads

    2,108

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    7.08 kB

    Total Files

    8

    Last publish

    Collaborators

    • iyegoroff