/v1/palette
Simulate a palette
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/colorblind-api/v1/palette" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/colorblind-api/v1/palette", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/colorblind-api/v1/palette");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/colorblind-api/v1/palette",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 3,
"types": [
"protanopia",
"deuteranopia",
"tritanopia",
"achromatopsia"
],
"results": [
{
"original": "#ff0000",
"simulations": {
"protanopia": {
"hex": "#918e00",
"rgb": {
"b": 0,
"g": 142,
"r": 145
},
"label": "red-blind"
},
"tritanopia": {
"hex": "#f20000",
"rgb": {
"b": 0,
"g": 0,
"r": 242
},
"label": "blue-blind"
},
"deuteranopia": {
"hex": "#9fb300",
"rgb": {
"b": 0,
"g": 179,
"r": 159
},
"label": "green-blind"
},
"achromatopsia": {
"hex": "#4c4c4c",
"rgb": {
"b": 76,
"g": 76,
"r": 76
},
"label": "total color blindness"
}
}
},
{
"original": "#00ff00",
"simulations": {
"protanopia": {
"hex": "#6e713e",
"rgb": {
"b": 62,
"g": 113,
"r": 110
},
"label": "red-blind"
},
"tritanopia": {
"hex": "#0d6e79",
"rgb": {
"b": 121,
"g": 110,
"r": 13
},
"label": "blue-blind"
},
"deuteranopia": {
"hex": "#604d4d",
"rgb": {
"b": 77,
"g": 77,
"r": 96
},
"label": "green-blind"
},
"achromatopsia": {
"hex": "#969696",
"rgb": {
"b": 150,
"g": 150,
"r": 150
},
"label": "total color blindness"
}
}
…