Install
openclaw skills install clip-path-generateGenerate CSS clip-path code for shapes. Use when the user asks to create a clip path, clip an element to a shape, generate clip-path CSS, or make a polygon,...
openclaw skills install clip-path-generateGenerate clip-path CSS values for circle, ellipse, polygon, and inset shapes, with optional -webkit- vendor prefix.
circle | ellipse | polygon | inset (default circle)radius % (default 50), cx % (default 50), cy % (default 50)rx % (default 50), ry % (default 35), cx % (default 50), cy % (default 50)top %, right %, bottom %, left % (default all 10)x% y% point pairs (at least 3 points)false)clip-path: <value>;-webkit-clip-path: <value>; if vendor prefix requestedcircle(<radius>% at <cx>% <cy>%)ellipse(<rx>% <ry>% at <cx>% <cy>%)inset(<top>% <right>% <bottom>% <left>%)polygon(<x1>% <y1>%, <x2>% <y2>%, ...) — join all points with , polygon(50% 10%, 90% 90%, 10% 90%)polygon(50% 5%, 95% 35%, 80% 90%, 20% 90%, 5% 35%)polygon(50% 5%, 90% 25%, 90% 75%, 50% 95%, 10% 75%, 10% 25%)polygon(50% 5%, 61% 35%, 95% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 5% 35%, 39% 35%)polygon(5% 35%, 60% 35%, 60% 10%, 95% 50%, 60% 90%, 60% 65%, 5% 65%)clip-path: <value>;-webkit-clip-path: <value>; above the standard property..element class.shape: circle | ellipse | polygon | inset — default circleradius: 0–50 — default 50 (circle only)cx: 0–100 — default 50cy: 0–100 — default 50rx: 0–50 — default 50 (ellipse only)ry: 0–50 — default 35 (ellipse only)top / right / bottom / left: 0–50 — default 10 (inset only)vendorPrefix: true | false — default falseInput: "Circle clip path, 40% radius, centered" Output:
clip-path: circle(40% at 50% 50%);
Input: "Triangle clip path" Output:
clip-path: polygon(50% 10%, 90% 90%, 10% 90%);
Input: "Ellipse clip, 60% wide 40% tall, centered, with webkit prefix" Output:
-webkit-clip-path: ellipse(60% 40% at 50% 50%);
clip-path: ellipse(60% 40% at 50% 50%);
Input: "Inset rectangle 15% margin all sides" Output:
clip-path: inset(15% 15% 15% 15%);
circle and notify the user.-webkit-clip-path vendor prefix (or set vendorPrefix to true).