Polygons with rounded corners

Is there any means to make a polygon with rounded corners in Pavlovia?

I could pre-render images, but the size will need to change on the fly.

Like this:

Rounded Rectangle

Hi There,

Unfortunately this isn’t easy to implement at the moment. Since this would class as a “regular polygon” which is then defined by number of vertices. If essential the easiest solution to this would be to use an image stim instead.