BW Color Contrast AI is a simple machine learning webapp that learns and suggests which text color (black or white) goes best on the foreground of a randomly generated background color using brain.js as the library for neural network.
DEMO: https://ewliang.github.io/BW-Color-Contrast-AI/
- Generates a random background color, and it suggests what colored text (black or white) best contrasts against the background color.
- User can toggle ON/OFF training mode.
- AI predictions are designated via a black border surrounding its selection.
Eric Liang
- Website https://www.eric-liang.com
- Github https://www.github.com/ewliang
- HTML5
- CSS3
- Javascript
- Brain.js
The setup is simple. Just treat this as a ordinary web project with brain.js included as a library.
This project is under the GPLv3.0 license. Please refer to the LICENSE file for more details.