CanvasTexture

CanvasTexture

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

Properties

This module exposes no properties.

Methods

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.

Join the Spark AR Creator's community

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

Join the Spark AR Creator's community

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

Frequently asked questions

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