1.0.1 • Published 4 years ago

@vyppn/chameleon-react v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@vyppn/chameleon-react

Get dominant colors from image for your react application

NPM JavaScript Style Guide

What is it made for?

Get dominant colors from image for your react application React Native and Expo compatible

Example

Check how does it in Live Demo img

Install

npm install --save @vyppn/chameleon-react

or

yarn add @vyppn/chameleon-react

Usage

The result will give the list of 5 dominant Hex colors.

import React from 'react'

import Chameleon from '@vyppn/chameleon-react'

export default () => {

  // Usage
  const {result,error} = await Chameleon(imageURL)
  
  return (
    <MyComponent />
  )
}

License

MIT © vyppN