Vector kit command

color.gamutCheck

Gamut Warning

Answers the colours of the selection (or document) that can't print in the working CMYK, with how far out and how often used.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of color.gamutCheck
NameTypeRequiredDescription
colorsstring[]no
idintegernoobject ID
idsinteger[]noobject IDs

Call through vector_run

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

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

Result

Result of color.gamutCheck
NameTypeRequiredDescription
checkednumberno
outOfGamutobject[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "checked": {
      "type": "number"
    },
    "outOfGamut": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "count": {
            "type": "number"
          },
          "deltaE": {
            "type": "number"
          },
          "hex": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "colors": {
      "items": {
        "description": "a colour such as #rrggbb",
        "type": "string"
      },
      "type": "array"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "returns": "{checked, outOfGamut: [{hex, deltaE, count}]}",
  "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.