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.
npm i neural-color-picker --save
<script src="https://unpkg.com/neural-color-picker@1.2.1/dist/neural.js"></script>
Your input will be the color of the background
const color = require('neural-color-picker')
console.log(color(255, 255, 255))
console.log(neuralColor(255, 255, 255))
Output is what color your foreground text should be
dark
To show support for the project, you can do any (or many!) of the following:
MIT License (MIT)