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
| Name | Type | Required | Description |
|---|---|---|---|
angle | number | no | degrees; 45; CMYK: the black screen's, cyan −30°, magenta +30°, yellow −45° from it |
clip | boolean | no | clip the dots to the art's outline |
cmyk | any | no | mono; one of several alternative parameters |
color | string | no | |
frequency | number | no | |
invert | boolean | no | dots for light tones |
keepOriginal | boolean | no | |
mode | string | no | like mono; one of several alternative parameters |
shape | "circle" | "ellipse" | "square" | "diamond" | "line" | no | circle |
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.