Vector kit command
shape.flare
Flare
Draws a lens flare (centre, halo, rays and rings) with the Flare tool's options; answers its id.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
brightness | number | no | percent |
cx | number | no | |
cy | number | no | |
diameter | number | no | points |
direction | number | no | degrees |
fuzziness | number | no | percent |
growth | number | no | percent |
largest | number | no | percent |
longest | number | no | percent |
opacity | number | no | percent |
pathLength | number | no | points |
rayFuzziness | number | no | percent |
rays | integer | no | |
rings | integer | no | |
seed | integer | no | |
x2 | number | no | |
y2 | number | no | ring end; else pathLength at direction |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "shape.flare" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: brightness, cx, cy, diameter, direction, fuzziness, growth, largest, longest, opacity, pathLength, rayFuzziness, rays, rings, seed, x2, y2. 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": {
"brightness": {
"default": 30,
"description": "percent",
"type": "number"
},
"cx": {
"type": "number"
},
"cy": {
"type": "number"
},
"diameter": {
"default": 100,
"description": "points",
"type": "number"
},
"direction": {
"default": 45,
"description": "degrees",
"type": "number"
},
"fuzziness": {
"default": 50,
"description": "percent",
"type": "number"
},
"growth": {
"default": 20,
"description": "percent",
"type": "number"
},
"largest": {
"default": 50,
"description": "percent",
"type": "number"
},
"longest": {
"default": 300,
"description": "percent",
"type": "number"
},
"opacity": {
"default": 50,
"description": "percent",
"type": "number"
},
"pathLength": {
"default": 300,
"description": "points",
"type": "number"
},
"rayFuzziness": {
"default": 100,
"description": "percent",
"type": "number"
},
"rays": {
"default": 15,
"type": "integer"
},
"rings": {
"default": 10,
"type": "integer"
},
"seed": {
"type": "integer"
},
"x2": {
"type": "number"
},
"y2": {
"description": "ring end; else pathLength at direction",
"type": "number"
}
},
"returns": "{id}",
"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.