# TextLayer.createFill
Creates or replaces the solid fill on this text layer.

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

## TextLayer.createFill() method

Creates or replaces the solid fill on this text layer.

**Signature:**

```typescript
createFill(opts: SolidPaintOptions): SolidPaint;
```

## Parameters

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

      <th>
        Type
      </th>

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

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

      <td>
        [SolidPaintOptions](/en/creator-api/types/solid-paint-options)
      </td>

      <td>
        Options describing the fill color.
      </td>
    </tr>
  </tbody>
</table>

**Returns:** [SolidPaint](/en/creator-api/values/solid-paint)

The created (or replaced) fill paint.

## Example

```ts
textLayer.createFill({ type: "SOLID", color: { r: 255, g: 0, b: 128 } });
```
