A small API that returns RGB colors as JSON.
GET
api/color
Gets a randomly-generated color in RGB format. Adds it as new entry in DB.
Colors are sent as RGB in the following format:
{
"rgb" : {
"r" : 45,
"g" : 234,
"b" : 89
}
}
GET
api/colors/{N}
Fetch N colors, randomly.
Open api/colors
to fetch colors from the history database.
- Lumen 5.1
This is open-sourced software licensed under the MIT license.