# LinearGradientPaint
Represents a linear gradient paint.

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

## LinearGradientPaint interface

Represents a linear gradient paint.

**Signature:**

```typescript
interface LinearGradientPaint extends GradientPaint
```

**Extends:** [GradientPaint](/en/creator-api/values/gradient-paint)

## Example

```ts
// Create a linear gradient from left to right
group.createFill({
  type: "GRADIENT_LINEAR",
  start: { x: 0, y: 100 },
  end: { x: 200, y: 100 },
  stops: [
    { color: { r: 255, g: 0, b: 0 }, offset: 0, opacity: 1 },
    { color: { r: 0, g: 0, b: 255 }, offset: 1, opacity: 1 },
  ],
});
```

## Properties

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

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

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

  <tbody>
    <tr>
      <td>
        [type](/en/creator-api/values/linear-gradient-paint/type)
      </td>

      <td>
        `readonly`
      </td>

      <td>
        "GRADIENT\_LINEAR"
      </td>

      <td>
        Paint type
      </td>
    </tr>
  </tbody>
</table>
