Rendering Video
Documentation
DocsSDKs & SkillsAPI ReferenceGuidesPricing
Agent
DocsSDKs & SkillsAPI ReferenceGuidesPricing
JSON to Video Docs for AI Apps and Automation
JSON to Video Guide for AI Apps and Automation
JSON Structure and Field Rules
Clip and Element Index
Element Reference
Element Reference IndexBaseClip, Transform, and StyleVideo ElementImage ElementText ElementRect ElementCircle ElementPolygon ElementCode ElementSVG ElementIcon ElementLine and Path ElementsThree ElementAudio ElementSubtitle ElementLayout ElementTemplate Element
Animation, Keyframes, and Transitions
Template System
API and Usage
API Reference
Examples
Tutorials
TutorialsGetting StartedBasic ConceptsCreate Text AnimationCreate Product ShowcaseCreate Social VideoAdd SubtitlesUse Animations
Why RenderingVideo vs Building In-House
View Markdown

Polygon Element

Polygon clip fields, point definitions, and runtime behavior

Polygon Element

1. Shape

interface PolygonClip extends BaseClip {
  type: "polygon";
  sides: number;
  size: number;
}

2. Supported fields

sides

  • Type: number
  • Required: yes
  • Purpose: number of sides

size

  • Type: number
  • Required: yes
  • Purpose: polygon size

3. Example

{
  "type": "polygon",
  "start": 0,
  "duration": 4,
  "sides": 6,
  "size": 140,
  "transform": {
    "x": "50%",
    "y": "50%"
  },
  "style": {
    "fill": "#f97316"
  }
}

On this page

1. Shape2. Supported fieldssidessize3. Example