Custom Color Scheme Generator
Custom Color Scheme Generator · GPT 작업
The Color API
API for getting color information based on HEX, RGB, HSL, or CMYK values.
GET /idgetColorInfoGet information for a single color.
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "The Color API",
"description": "API for getting color information based on HEX, RGB, HSL, or CMYK values.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.thecolorapi.com"
}
],
"paths": {
"/id": {
"get": {
"description": "Get information for a single color.",
"operationId": "getColorInfo",
"parameters": [
{
"name": "hex",
"in": "query",
"description": "Valid hex code",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "rgb",
"in": "query",
"description": "Valid rgb color, also rgb(0,71,171)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "hsl",
"in": "query",
"description": "Valid hsl color, also hsl(215,100%,34%)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "cmyk",
"in": "query",
"description": "Valid cmyk color, also cmyk(100,58,0,33)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "format",
"in": "query",
"description": "Return results as JSON, SVG or HTML page",
"required": false,
"schema": {
"type": "string",
"enum": [
"json",
"html",
"svg"
]
}
},
{
"name": "w",
"in": "query",
"description": "Height of resulting image, only applicable on SVG format",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "named",
"in": "query",
"description": "Whether to print the color names on resulting image, only applicable on SVG format",
"required": false,
"schema": {
"type": "boolean"
}
}
]
}
}
},
"components": {
"schemas": {}
}
}