Simplest method for pshape triangle with rounded corners?

Has anyone got any suggestions for this ?
It can be drawn point by point rather tediously with vertex and beziervertex, but is there maybe an easier method ?

Thanks for any suggestions.
mala

1 Like

probably the simplest is create an svg of the triangle you want and import it.

https://processing.org/reference/PShape.html

The loadShape() function supports SVG files created with Inkscape and Adobe Illustrator. It is not a full SVG implementation, but offers some straightforward support for handling vector data.

2 Likes

Thanks, yes was aware of that option.
Had some issues with Inkscape on OSX in the past, so currently SVG creation is not an option for me.
Will look again and see if Inkscape plays nice now though,would be useful for the future.

Anyway, not to worry, I got there with a bit of maths and the vertex method.

Glad you solved it!

Would you be willing to share your solution – for any future users are looking for rounded triangles?

Apologies,rather late reply!
The method i used was not really a coded solution, I just got one corner to look correct by trial & error then took the distance of the placed vertex from the original triangle corner and used the same distance on the other 2 corners.

I have since though started using Krita and exporting svg files… a much nicer solution.