Users can define the color palette used for Color Coding.
Overview
- Defined in a JSON file
- Up to 32 colors can be specified
| Item |
Description |
| Format |
JSON |
| Character encoding |
UTF-8 (without BOM) |
| Key names |
Case-insensitive |
Root Structure -
JSON Keys (Top Level)
| Item |
Type |
Required |
Description |
| FileType |
String |
Yes |
File type identifier |
| Version |
Integer |
Yes |
Format version |
| Name |
String |
Yes |
Palette name |
| Colors |
Array |
Yes |
Color code array |
Item Specification
| Item |
Type |
Required |
Value / Description |
Notes |
| FileType |
String |
Yes |
"TurboGPX.Palette" |
Fixed value |
| Version |
Integer |
Yes |
1 |
|
| Name |
String |
Yes |
Display name of the palette |
Example: Default 32 |
| Colors |
Array |
Yes |
Array that stores color codes in order |
The array order becomes the color index |
Colors Array -
Element Specification
| Item |
Type |
Required |
Description |
| [0]-[n] |
String |
Yes |
Color code in #RRGGBB format |
| Item |
Type |
Required |
Description |
| Color |
String |
Yes |
Hexadecimal RGB string |
| Format |
String |
Yes |
#RRGGBB |
| Example |
String |
Yes |
#FF0000 |
Palette Sample
{
"FileType": "TurboGPX.Palette",
"Version": 1,
"Name": "Default 32",
"Colors": [
"#000000",
"#808080",
"#C0C0C0",
"#FFFFFF",
"#800000",
"#FF0000",
"#808000",
"#FFFF00",
"#008000",
"#00FF00",
"#008080",
"#00FFFF",
"#000080",
"#0000FF",
"#800080",
"#FF00FF",
"#804000",
"#FF8000",
"#408000",
"#80FF00",
"#008040",
"#00FF80",
"#004080",
"#0080FF",
"#400080",
"#8000FF",
"#804040",
"#FF8080",
"#408080",
"#80FFFF",
"#404040",
"#C080FF"
]
}