How to work with mesh?

Ive been trying to hobble a ribbon effect via a canvas. But now I find its not the right tool for the job. I want to change the width of the ribbon and change colors over time.

This should be much easier using a mesh and some simple vector math…
How do i get started using the mesh in iced?
Are there any examples around?
Can I replace my canvas with a mesh surface?

Found some little snippets to get me going:

The geometry example is good for getting to know how to use mesh :slight_smile:

Alternatively, I use meshes here in one of my custom widgets: generic-daw/generic_daw_gui/src/widget/audio_clip.rs at main · generic-daw/generic-daw · GitHub It’s not super well documented but maybe that can be of some help as well.

great thanks! Its certainly plenty to get me going in the examples you’ve given!