Skip to content

JavaScript library to help you pick colors by using a Recurrent Neural Network

License

Notifications You must be signed in to change notification settings

akash-joshi/neural-color-picker

Repository files navigation

neural-color-picker

Neural Color Picker

npm Downloads License


neural-color-picker

A JavaScript library using a Recurrent Neural Network, which receives a background color as input in the form of (Red, Green, Blue) and outputs whether the foreground text should be light or dark.


Installation

Using npm

npm i neural-color-picker --save

Using the browser

<script src="https://unpkg.com/neural-color-picker@1.2.1/dist/neural.js"></script>

Usage

Your input will be the color of the background

Node

const color = require('neural-color-picker')
console.log(color(255, 255, 255))

Browser

console.log(neuralColor(255, 255, 255))

Output

Output is what color your foreground text should be

dark

Support the project

To show support for the project, you can do any (or many!) of the following:


License

MIT License (MIT)

Releases

No releases published

Packages

No packages published