---
title: "livePaint.fill: Region Paint Bucket — Vector kit command — Kition"
description: "Fills the Region Paint face containing a point with a colour, swatch, gradient or none."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/livePaint.fill"
---

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

# livePaint.fill

**Region Paint Bucket.** Fills the Region Paint face containing a point with a colour, swatch, gradient or none.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `color` | `string` | no | default: current fill; one of several alternative parameters |
| `gradient` | `object` | no |  |
| `group` | `integer` | no | object ID |
| `id` | `integer` | no | object ID |
| `ids` | `integer[]` | no | object IDs |
| `keepModel` | `boolean` | no | read by the command beside its listed parameters |
| `none` | `boolean` | no |  |
| `paint` | `object` | no | read by the command beside its listed parameters |
| `point` | `number[]` | no |  |
| `swatch` | `string` | no |  |
| `tint` | `integer` | no | read by the command beside its listed parameters |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "livePaint.fill" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `color`, `gradient`, `group`, `id`, `ids`, `keepModel`, `none`, `paint`, `point`, `swatch`, `tint`. vector_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "color": {
      "description": "default: current fill; one of several alternative parameters",
      "type": "string"
    },
    "gradient": {
      "additionalProperties": true,
      "type": "object"
    },
    "group": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "keepModel": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "none": {
      "type": "boolean"
    },
    "paint": {
      "additionalProperties": true,
      "description": "read by the command beside its listed parameters",
      "type": "object"
    },
    "point": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "swatch": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch",
        "Pattern"
      ]
    },
    "tint": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    }
  },
  "returns": "{group, face}",
  "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).
