Configuring custom color palette
To add custom color palette create a colors.json file in the root of the data directory which can be found on the same directory as the main executable
The colors.json file should be a valid JSON with the following keys
Arg | Type | Description |
---|---|---|
version | string | the name of the project to be trained |
colors | Array<colors> | the input data format, Learn more |
colors
Arg | Type | Description |
---|---|---|
name | string | name of the color set |
background | string | background color in the color set in hexadecimal |
group | string | group name of the color set |
foreground | string | foreground color in the color set in hexadecimal |
alpha | number | opacity of the color set ranging (0 to 1) |
example
{
"version": "1.0",
"colors": [
{
"name": "Fuschia",
"background": "#f012bc",
"group": "Group A",
"foreground": "#000000",
"alpha": 0.2
},
{
"name": "Green",
"background": "#a6e22d",
"group": "Group A",
"foreground": "#000000",
"alpha": 0.2
},
{
"name": "Red",
"background": "#ff4136",
"group": "Group B",
"foreground": "#000000",
"alpha": 0.2
}
]
}