# Stroke
Represents a stroke (outline) applied to a shape.

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

## Stroke interface

Represents a stroke (outline) applied to a shape.

**Signature:**

```typescript
interface Stroke
```

## Example

```ts
// Create 5px solid stroke
group.createStroke({
  fill: {
    type: "SOLID",
    color: { r: 0, g: 0, b: 0 },
  },
  width: 5,
});
```

## Properties

<table>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

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

  <tbody>
    <tr>
      <td>
        [fill](/en/creator-api/nodes/stroke/fill)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        [Paint](/en/creator-api/types/paint)
      </td>

      <td>
        The fill paint of the stroke
      </td>
    </tr>

    <tr>
      <td>
        [width](/en/creator-api/nodes/stroke/width)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        [Animatable](/en/creator-api/nodes/animatable)\<number>
      </td>

      <td>
        The width of the stroke
      </td>
    </tr>
  </tbody>
</table>

## Methods

<table>
  <thead>
    <tr>
      <th>
        Method
      </th>

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

  <tbody>
    <tr>
      <td>
        [remove()](/en/creator-api/nodes/stroke/remove)
      </td>

      <td>
        Removes the stroke from the container it is applied to
      </td>
    </tr>
  </tbody>
</table>
