---
title: "Add Shapes and Graphics to Video | Rendley SDK Docs"
description: "Add rectangles, circles, lines and custom shapes to video with the Rendley SDK. Style with fills, strokes, rounded corners and gradients."
url: https://docs.rendley.com/sdk/getting-started/clips/shape/
---

# Shape clips

The [ShapeClip](https://docs.rendley.com/sdk/api-reference/classes/ShapeClip.html) draws vector shapes directly on the canvas. Prefer it over image assets for anything geometric, rectangles, circles, triangles, stars, and polygons. Shapes render crisply at any resolution.

## Create a shape clip

Runnable exampleShow full code

Run

```
const shape = await layer.addClip({
  type: "shape",
  shape: "rectangle",
  startTime: 0,
  duration: 5,
  style: {
    fillColor: "#6d6ff2",
    strokeColor: "#FFFFFF",
    strokeWidth: 4,
    width: 600,
    height: 300,
  },
});

shape.style.setPosition(960, 540);
shape.style.setCornerRadius([40, 40, 40, 40]);
```

## Supported shapes

List of Supported Shapes

| Shape | Support |
| --- | --- |
| Rectangle | ✅ |
| Rounded Rectangle | ✅ |
| Circle | ✅ |
| Ellipse | ✅ |
| Triangle | ✅ |
| Star | ✅ |
| Polygon | ✅ |
| Bezier | ✅ |

## Shape-Specific style

Each shape accepts a shared set of style fields plus a few shape-specific ones.

- **Star**: `nrPoints`, `innerRadius`, `outerRadius`.
- **Rounded Rectangle**: `rectRadius`.
- **Polygon** and **Bezier**: pass a list of points. Use `null` to separate multiple shapes drawn in the same clip.

Colors, stroke, stroke alignment, and corner radius live on [ShapeStyle](https://docs.rendley.com/sdk/api-reference/classes/ShapeStyle.html).

## What to read next

- **[Styling](https://docs.rendley.com/sdk/getting-started/styling/)** positions, scales, rotates and colors a clip.
- **[Masking](https://docs.rendley.com/sdk/getting-started/masking/)** uses one clip as the alpha source for another.
- API reference: [`ShapeClip`](https://docs.rendley.com/sdk/api-reference/classes/ShapeClip.html), [`ShapeStyle`](https://docs.rendley.com/sdk/api-reference/classes/ShapeStyle.html).

[Previous pageSubtitle clips](https://docs.rendley.com/sdk/getting-started/clips/subtitles/) [Next pageSVG clips](https://docs.rendley.com/sdk/getting-started/clips/svg/)
