Vector kit command

color.harmony

Color Guide

Answers a colour harmony (complementary, triad, analogous, shades and more) built from a base colour, optionally snapped to a swatch library; changes nothing.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of color.harmony
NameTypeRequiredDescription
amountintegerno0 to 100; 50; how far the outermost steps go
colorstringno
limitTostringno
rule"complementary" | "complementary2" | "splitComplementary" | "leftComplement" | "rightComplement" | "analogous" | "analogous2" | "monochromatic" | "shades" | "triad" | "triad2" | "triad3" | "tetrad" | "tetrad2" | "tetrad3" | "compound" | "compound2" | "highContrast" | "highContrast2" | "highContrast3" | "pentagram"noor its label
stepsintegerno1 to 20; 4
variation"tintsShades" | "warmCool" | "vividMuted"no

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "color.harmony" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: amount, color, limitTo, rule, steps, variation. vector_run answers the step’s result in completed[i].result.

Result

Result of color.harmony
NameTypeRequiredDescription
colorsany[]no
gridany[]no
ruleanyno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "colors": {
      "type": "array"
    },
    "grid": {
      "type": "array"
    },
    "rule": {}
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "amount": {
      "description": "0 to 100; 50; how far the outermost steps go",
      "type": "integer"
    },
    "color": {
      "type": "string"
    },
    "limitTo": {
      "type": "string"
    },
    "rule": {
      "description": "or its label",
      "enum": [
        "complementary",
        "complementary2",
        "splitComplementary",
        "leftComplement",
        "rightComplement",
        "analogous",
        "analogous2",
        "monochromatic",
        "shades",
        "triad",
        "triad2",
        "triad3",
        "tetrad",
        "tetrad2",
        "tetrad3",
        "compound",
        "compound2",
        "highContrast",
        "highContrast2",
        "highContrast3",
        "pentagram"
      ],
      "type": "string"
    },
    "steps": {
      "description": "1 to 20; 4",
      "type": "integer"
    },
    "variation": {
      "enum": [
        "tintsShades",
        "warmCool",
        "vividMuted"
      ],
      "type": "string"
    }
  },
  "returns": "{rule, colors: [\"#rrggbb\", the base first], grid: [per colour, 2·steps+1 variations from shades/cool/muted to tints/warm/vivid with the colour itself in the centre]}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.