genart.dev
Plugins

Shapes

Geometric primitives — rectangles, ellipses, lines, polygons, stars, and blend shapes.

Geometric shape layers for composing visual elements in the design overlay.

Installation

npm install @genart-dev/plugin-shapes

Layer Types

Type IDDisplay NameDescription
shapes:rectRectangleAxis-aligned rectangle with optional rounded corners
shapes:ellipseEllipseEllipse or circle
shapes:lineLineStraight line between two points
shapes:polygonPolygonRegular polygon with configurable sides
shapes:starStarStar shape with configurable points and inner radius
shapes:blendBlendBlended transition between two shapes

Properties

shapes:rect

PropertyTypeDefaultDescription
widthnumber100Width in pixels
heightnumber100Height in pixels
cornerRadiusnumber0Corner rounding radius
fillcolor"#000000"Fill color
strokecolor"none"Stroke color
strokeWidthnumber1Stroke width

shapes:ellipse

PropertyTypeDefaultDescription
radiusXnumber50Horizontal radius
radiusYnumber50Vertical radius
fillcolor"#000000"Fill color
strokecolor"none"Stroke color
strokeWidthnumber1Stroke width

shapes:line

PropertyTypeDefaultDescription
x2number100End point X
y2number100End point Y
strokecolor"#000000"Line color
strokeWidthnumber2Line width
dashArraystring""Dash pattern (e.g. "5,3")

shapes:polygon

PropertyTypeDefaultDescription
sidesnumber6Number of sides (3-12)
radiusnumber50Outer radius
fillcolor"#000000"Fill color
strokecolor"none"Stroke color
strokeWidthnumber1Stroke width
rotationnumber0Rotation in degrees

shapes:star

PropertyTypeDefaultDescription
pointsnumber5Number of points
outerRadiusnumber50Outer radius
innerRadiusnumber25Inner radius
fillcolor"#000000"Fill color
strokecolor"none"Stroke color
strokeWidthnumber1Stroke width

shapes:blend

PropertyTypeDefaultDescription
stepsnumber10Number of interpolation steps
easingselect"linear"Easing function for interpolation

MCP Tools

ToolDescription
design_add_shapeAdd a shape layer with type and properties
design_set_shape_styleUpdate fill, stroke, and style properties
design_set_polygonSet polygon or star point count and radii

Example

{
  "tool": "design_add_layer",
  "arguments": {
    "type": "shapes:polygon",
    "properties": {
      "sides": 8,
      "radius": 120,
      "fill": "#e63946",
      "stroke": "#1d3557",
      "strokeWidth": 3
    }
  }
}