---
title: "paint.recent: Recent Colors — Vector kit command — Kition"
description: "Answers the recently used colours (newest first) and the last colour and gradient."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/paint.recent"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/paint.recent](https://developer.kition.ai/docs/kits/vector/commands/paint.recent)

# paint.recent

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

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `colors` | `any[]` | no |  |
| `lastColor` | `object` | no |  |
| `lastGradient` | `object` | no |  |

```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/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
