Vector kit command

object.vectorHalftone

Vector Halftone…

Converts the selected art into a vector halftone of dots, lines or shapes at a frequency and angle, mono or CMYK.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of object.vectorHalftone
NameTypeRequiredDescription
anglenumbernodegrees; 45; CMYK: the black screen's, cyan −30°, magenta +30°, yellow −45° from it
clipbooleannoclip the dots to the art's outline
cmykanynomono; one of several alternative parameters
colorstringno
frequencynumberno
invertbooleannodots for light tones
keepOriginalbooleanno
modestringnolike mono; one of several alternative parameters
shape"circle" | "ellipse" | "square" | "diamond" | "line"nocircle

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: angle, clip, cmyk, color, frequency, invert, keepOriginal, mode, shape. 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": {
    "angle": {
      "description": "degrees; 45; CMYK: the black screen's, cyan −30°, magenta +30°, yellow −45° from it",
      "type": "number"
    },
    "clip": {
      "default": true,
      "description": "clip the dots to the art's outline",
      "type": "boolean"
    },
    "cmyk": {
      "description": "mono; one of several alternative parameters"
    },
    "color": {
      "type": "string"
    },
    "frequency": {
      "type": "number"
    },
    "invert": {
      "description": "dots for light tones",
      "type": "boolean"
    },
    "keepOriginal": {
      "default": false,
      "type": "boolean"
    },
    "mode": {
      "description": "like mono; one of several alternative parameters",
      "type": "string"
    },
    "shape": {
      "description": "circle",
      "enum": [
        "circle",
        "ellipse",
        "square",
        "diamond",
        "line"
      ],
      "type": "string"
    }
  },
  "returns": "{id, dots}",
  "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.