# CanvasTexture

* [![](https://scontent-vie1-1.xx.fbcdn.net/v/t39.2365-6/76870833_509761306273232_5468210970943815680_n.svg?_nc_cat=108&_nc_sid=ad8a9d&_nc_ohc=muIUhTRJkukAX8VE60K&_nc_ht=scontent-vie1-1.xx\&oh=accf70421d0aaafb4ed636f448e51c82\&oe=5ECFAF15)](https://sparkar.facebook.com/)

## CanvasTexture

The `CanvasTexture` class enables painting with a brush to a texture.

### Properties

This module exposes no properties.

### Methods

| Method       | Description                                                                                                                                                                                                                                             |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `addPath`    | <p><code>addPath(startProgress: ScalarSignal, endProgress: ScalarSignal, xSampler: ScalarSampler, ySampler: ScalarSampler, widthSampler: ScalarSampler, colorSampler: ColorSampler): void</code></p><p>Adds a path based on the specified samplers.</p> |
| `clearPaths` | <p><code>clearPaths(): void</code></p><p>Deletes all paths.</p>                                                                                                                                                                                         |

### Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

[Join Community](https://www.facebook.com/groups/SparkARcommunity/)

### Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

[Join Community](https://www.facebook.com/groups/SparkARcommunity/)

### Frequently asked questions

Have a specific question? Maybe it's been answered.

[Read FAQs](https://sparkar.facebook.com/docs/ar-studio/faq)
