Skip to content

Commit

Permalink
upd: support RGB color array for map_color component
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelant05 committed Sep 10, 2022
1 parent ef02472 commit 3af0d8d
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,19 @@
"additionalProperties": false,
"title": "Map Color",
"description": "Sets the color of the block when rendered to a map. The color is represented as a hex value in the format '#RRGGBB'. May also be expressed as an array of [R, G, B] from 0 to 255. If this component is omitted, the block will not show up on the map.",
"$ref": "../../../general/hexColor.json"
"anyOf": [
{
"$ref": "../../../general/hexColor.json"
},
{
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": {
"minimum": 0,
"maximum": 255,
"type": "integer"
}
}
]
}

0 comments on commit 3af0d8d

Please sign in to comment.