# Scene.createShapeLayer
Creates a new shape layer

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## Scene.createShapeLayer() method

Creates a new shape layer

**Signature:**

```typescript
createShapeLayer(opts?: LayerCreateOptions): ShapeLayer;
```

## Parameters

<table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        opts
      </td>

      <td>
        [LayerCreateOptions](../../types/layer-create-options)
      </td>

      <td>
        _(Optional)_ Options for creating the shape layer
      </td>
    </tr>
  </tbody>
</table>

**Returns:**

[ShapeLayer](../shape-layer)

The newly created shape layer

## Example

```ts
// Create a shape layer at position (100, 100)
const shapeLayer = scene.createShapeLayer({ position: { x: 100, y: 100 } });
// Create a rectangle shape in the shape layer
const rectangle = shapeLayer.createRectangle({
  position: { x: 0, y: 0 },
  size: { width: 200, height: 100 },
  roundness: 10,
});
```
