Generate a color.
POST/generate/color
Generate a color.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
- string
- string
- number
- string
rgb:rgb(0, 0, 0)rgba:rgba(0, 0, 0, 0)hsl:hsl(0, 0%, 0%)hsla:hsla(0, 0%, 0%, 0)hex:#000000
hue object
The hue of the generated color. Default is random.
string
Possible values: [red, orange, yellow, green, purple, pink, monochrome]
string
Possible values: Value must match regular expression #[0-9a-fA-F]{6}
luminositystring
The luminosity of the generated color. Default is random.
Possible values: [bright, light, dark]
seed object
A number or string that is used as a seed for the random number generator. By default, no seed is used.
number
string
formatstring
The format of the returned color. These are the possible formats:
Default is hex.
Possible values: [rgb, rgba, hsl, hsla, hex]
alphanumber
A decimal between 0 and 1 that specifies the value of the alpha channel. This is only relevant when using a format with an alpha channel. Default is a random value.
Possible values: >= 0 and <= 1
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
colorstringrequired
{
"color": "string"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}