CanvasTexture

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

This module exposes no properties.

Method
Description
addPath
addPath(startProgress: ScalarSignal, endProgress: ScalarSignal, xSampler: ScalarSampler, ySampler: ScalarSampler, widthSampler: ScalarSampler, colorSampler: ColorSampler): void
Adds a path based on the specified samplers.
clearPaths
clearPaths(): void
Deletes all paths.

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

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

Have a specific question? Maybe it's been answered.
Read FAQs
Copy link
On this page
CanvasTexture
Properties
Methods
Join the Spark AR Creator's community
Join the Spark AR Creator's community
Frequently asked questions