Styling

All clips, except for Audio Clips, come equipped with a styling mechanism that lets you fine-tune their appearance on the canvas. This includes controls over position, rotation, size, and more.

It's worth noting that all clips have an anchor set at its center, making rotations and movements happen from this central point. Moreover, the dimensions you set for scale, position, font size and other styling options are relative to the canvas size. This means that if you resize the canvas, all elements will scale up or down accordingly.

Applying Styles

To give your clips some extra flair, simply utilize the methods provided on the clip's style object. For instance, you can set a clip's rotation and position like so:

clip.style.setRotation(10);
clip.style.setPosition(20, 20);

Text Clips offer even more styling options, such as setting font sizes:

clip.style.setFontSize(48);

For a comprehensive list of all supported properties and methods, be sure to check out the API Reference.