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)