Root
Root component - Abyssale REST API
As mentioned before, the root
element can be used to customise the background of your image.
Property | Description |
---|---|
background_color | 3 filling modes are available:
|
Monochrome Color
Monochrome supported formats are:
6 hexadecimal digits with a starting
#
:Specified with:
#RRGGBB
. RR (red), GG (green) and BB (blue)Example: #0000FF
8 hexadecimal digits with a starting
#
:This format is an extended version of the 6 hexa digits, allowing to define an opacity to the color.
Specified with:
#RRGGBBAA
. RR (red), GG (green), BB (blue) and AA (alpha)Example: #0000FF80 represents the blue color with a 50% opacity (
80
).Here is the representation list of opacity (in percentage) to hexadecimal: (you can also find all values in this codepen)
Opacity (on a scale to 0-100) | AA (Alpha Hexadecimal) |
---|---|
0 |
|
5 |
|
10 |
|
20 |
|
30 |
|
40 |
|
50 |
|
60 |
|
70 |
|
80 |
|
90 |
|
100 |
|
3 hexadecimal colors are not supported (such as#AAA
)
Linear gradient
A linear gradient property can be used as background_color
(banner background, button) & color
(text).
The linear gradient format is represented as:
Gradient properties | Description |
---|---|
| Number (Percentage), can be negative. Define the straight line that will be used to draw the background. |
| Number (Percentage), can be negative. Define the offset of the starting & ending points (default: 0%, 100%) |
| String: 6 digits hexa color. Starting & ending colors |
| Float (between 0 & 1). Opacity of starting & ending colors |
Cmyka Color
Cmyka supported formats are:
4 numbers digits starting
cmyka(
:Specified with:
cmyka(c,m,y,k)
. cyan, magenta, yellow, and blackeach number are between 0 to 100
Example:
cmyka(0,0,0,0)
5 numbers digits starting
cmyka(
:Specified with:
cmyka(c,m,y,k,t)
. cyan, magenta, yellow, black and alpha transparancyeach number are between 0 to 100
Example:
cmyka(0,0,0,0,100)
Examples:
Monochrome:
| |
Cmyka:
| |
Linear gradient (horizontal):
| |
Linear gradient (vertical):
| |
Linear gradient (diagonal):
|
Last updated