Dynamic shape change from rectangle to trapezoid

Want to be able to adjust properties of a shape dynamically.

Specifically, I am trying to shorten the bottom base of the rectangle while maintaining the fixed top base.

Prefer perspective, but open to vision if it is available there.

With Vision's Paintable Canvas component, any arbitrary shapes can be drawn dynamically.

3 Likes

You could do that with perspective svg's to, simple shapes like that are quite easy with the polygon prop

2 Likes

Take a look at the radar chart for perspective, it should give inspiration on how to do shapes dynamically.