Color Class
By default, the classes generated by DTL get a random color.
This layer (color_class) used for coloring classes as you wish. Add this class at the end of graph, before data saving.
1
{
2
"action": "color_class",
3
"src": ["$sample1"],
4
"dst": "$sample2",
5
"settings": {
6
"classes_color_mapping": {
7
"sky": "#9090CC",
8
"grass": "#00AA00",
9
"stop": "#FF8080"
10
}
11
}
12
},
Copied!

Settings

  • classes_color_mapping โ€” dict where keys are existing classes, and values are new colors of classes in HEX format.

Hex color

Hex color format present as string with 4 components: # + RED + GREEN + BLUE. Use online color converters to more accurately achieve the desired color.
Last modified 1yr ago
Copy link