Vector kit command

paint.recent

Recent Colors

Answers the recently used colours (newest first) and the last colour and gradient.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

None.

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "paint.recent" }]
}

The required parameters, with placeholders for their types: not a tested example. vector_run answers the step’s result in completed[i].result.

Result

Result of paint.recent
NameTypeRequiredDescription
colorsany[]no
lastColorobjectno
lastGradientobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "colors": {
      "type": "array"
    },
    "lastColor": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "additionalProperties": true,
          "properties": {
            "b": {
              "type": "number"
            },
            "g": {
              "type": "number"
            },
            "model": {
              "type": "string"
            },
            "r": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "hex": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "lastGradient": {
      "additionalProperties": true,
      "properties": {
        "angle": {
          "type": "number"
        },
        "gradient": {
          "additionalProperties": true,
          "properties": {
            "kind": {
              "type": "string"
            },
            "stops": {
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "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.