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

Parameters of shape.flare
NameTypeRequiredDescription
brightnessnumbernopercent
cxnumberno
cynumberno
diameternumbernopoints
directionnumbernodegrees
fuzzinessnumbernopercent
growthnumbernopercent
largestnumbernopercent
longestnumbernopercent
opacitynumbernopercent
pathLengthnumbernopoints
rayFuzzinessnumbernopercent
raysintegerno
ringsintegerno
seedintegerno
x2numberno
y2numbernoring 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.