---
title: "edit.colors.adjustBalance: Adjust Color Balance… — Vector kit command — Kition"
description: "Shifts the selection's colours by per-channel amounts in RGB, CMYK, grey or global tint mode; answers how many changed."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/edit.colors.adjustBalance"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/edit.colors.adjustBalance](https://developer.kition.ai/docs/kits/vector/commands/edit.colors.adjustBalance)

# edit.colors.adjustBalance

**Adjust Color Balance….** Shifts the selection's colours by per-channel amounts in RGB, CMYK, grey or global tint mode; answers how many changed.

- 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 |
| --- | --- | --- | --- |
| `b` | `any` | no | one of several alternative parameters |
| `c` | `any` | no | one of several alternative parameters |
| `convert` | `boolean` | no | true: the results stay in the adjusted model; false: each colour keeps its own |
| `fill` | `boolean` | no |  |
| `g` | `number` | no |  |
| `gray` | `integer` | no | -100 to 100; % added per channel, default 0; `tint` is global mode: it shifts the tints of colours and gradient stops linked to global and spot swatches, which stay linked, and leaves other colours and images alone; one of several alternative parameters |
| `ids` | `integer[]` | no | object IDs |
| `includeImages` | `boolean` | no |  |
| `includePatterns` | `boolean` | no |  |
| `k` | `integer` | no | -100 to 100; % added per channel, default 0; `tint` is global mode: it shifts the tints of colours and gradient stops linked to global and spot swatches, which stay linked, and leaves other colours and images alone; one of several alternative parameters |
| `m` | `number` | no |  |
| `mode` | `"rgb" \| "cmyk" \| "gray" \| "global"` | no | default: from the channels given |
| `r` | `number` | no |  |
| `stroke` | `boolean` | no |  |
| `tint` | `integer` | no | -100 to 100; % added per channel, default 0; `tint` is global mode: it shifts the tints of colours and gradient stops linked to global and spot swatches, which stay linked, and leaves other colours and images alone; one of several alternative parameters |
| `y` | `number` | no |  |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "edit.colors.adjustBalance" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `b`, `c`, `convert`, `fill`, `g`, `gray`, `ids`, `includeImages`, `includePatterns`, `k`, `m`, `mode`, `r`, `stroke`, `tint`, `y`. 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": {
    "b": {
      "description": "one of several alternative parameters"
    },
    "c": {
      "description": "one of several alternative parameters"
    },
    "convert": {
      "default": false,
      "description": "true: the results stay in the adjusted model; false: each colour keeps its own",
      "type": "boolean"
    },
    "fill": {
      "type": "boolean"
    },
    "g": {
      "type": "number"
    },
    "gray": {
      "description": "-100 to 100; % added per channel, default 0; `tint` is global mode: it shifts the tints of colours and gradient stops linked to global and spot swatches, which stay linked, and leaves other colours and images alone; one of several alternative parameters",
      "type": "integer"
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "includeImages": {
      "type": "boolean"
    },
    "includePatterns": {
      "type": "boolean"
    },
    "k": {
      "description": "-100 to 100; % added per channel, default 0; `tint` is global mode: it shifts the tints of colours and gradient stops linked to global and spot swatches, which stay linked, and leaves other colours and images alone; one of several alternative parameters",
      "type": "integer"
    },
    "m": {
      "type": "number"
    },
    "mode": {
      "description": "default: from the channels given",
      "enum": [
        "rgb",
        "cmyk",
        "gray",
        "global"
      ],
      "type": "string"
    },
    "r": {
      "type": "number"
    },
    "stroke": {
      "type": "boolean"
    },
    "tint": {
      "description": "-100 to 100; % added per channel, default 0; `tint` is global mode: it shifts the tints of colours and gradient stops linked to global and spot swatches, which stay linked, and leaves other colours and images alone; one of several alternative parameters",
      "type": "integer"
    },
    "y": {
      "type": "number"
    }
  },
  "returns": "{changed}",
  "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).
