Vector kit command
recolor.colors
Artwork Colors
Answers the unique colours the selection uses (fills, strokes, gradient stops, text, meshes, pattern tiles) with their keys, hex values and use counts, most used first; feed the keys to recolor.apply.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
None.
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "recolor.colors" }]
}The required parameters, with placeholders for their types: not a tested example. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
colors | object[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"colors": {
"items": {
"additionalProperties": true,
"properties": {
"count": {
"type": "number"
},
"hex": {
"type": "string"
},
"key": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.