---
title: "livePaint.strokeEdge: Region Paint Bucket (Stroke) — Vector kit command — Kition"
description: "Paints the Region Paint edge nearest a point with a stroke colour, swatch or none and a width."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/livePaint.strokeEdge"
---

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

# livePaint.strokeEdge

**Region Paint Bucket (Stroke).** Paints the Region Paint edge nearest a point with a stroke colour, swatch or none and a width.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `color` | `string` | no | default: current stroke; one of several alternative parameters |
| `gradient` | `string` | no | read by the command beside its listed parameters |
| `group` | `integer` | no | object ID |
| `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 |
| `tolerance` | `number` | no | points; 4 |
| `width` | `number` | no | points; default: current weight |

## Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `color`, `gradient`, `group`, `keepModel`, `none`, `paint`, `point`, `swatch`, `tint`, `tolerance`, `width`. 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 stroke; one of several alternative parameters",
      "type": "string"
    },
    "gradient": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "group": {
      "description": "object ID",
      "type": "integer",
      "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"
    },
    "tolerance": {
      "description": "points; 4",
      "type": "number"
    },
    "width": {
      "description": "points; default: current weight",
      "type": "number"
    }
  },
  "returns": "{group, edge}",
  "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).
