Skip to main content
Language

Configure Brush

VideoEditor SDK supports several configuration options for the brush tool allowing flexible adaptation to different needs and use cases. For a detailed explanation of how to configure different editor views, refer to this guide.

actions#

By default, all available brush tools are enabled. For this example only a couple are enabled.

defaultColor#

The default color of the brush stroke is #000000. If you can anticipate that your use case requires a different default color you can set the defaultColor.

defaultSize#

Similarly, the size of the brushis set at 5% relative to the smaller side of the video by default. For this example, the default size is set to be 2.5% of the smaller side of the image.

colors#

By default, the editor provides a variety of different colors to customize the color of the brush stroke. Here, we only provide a small selection of colors as might be sensible for an annotation use case.