---
title: "paint.freeform.get: Freeform Gradient — Vector kit command — Kition"
description: "Answers the freeform gradient behind the first selected object's fill or stroke: its mode, points, lines and selected point."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/paint.freeform.get"
---

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

# paint.freeform.get

**Freeform Gradient.** Answers the freeform gradient behind the first selected object's fill or stroke: its mode, points, lines and selected point.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `stroke` | `boolean` | no | default: the active proxy |

## Call through vector_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `lines` | `any[]` | no |  |
| `mode` | `any` | no |  |
| `points` | `any[]` | no |  |
| `selected` | `any` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "lines": {
      "type": "array"
    },
    "mode": {},
    "points": {
      "type": "array"
    },
    "selected": {}
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "stroke": {
      "description": "default: the active proxy",
      "type": "boolean"
    }
  },
  "returns": "{mode: points|lines, points: [{at: [x,y] (document coordinates), color, opacity, spread}], lines: [[index, …]], selected: index|null}",
  "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).
