Path::addRoundedTriangle?


#1

Hello JUCE team,

I would be happy, if you would consider adding the function Path::addRoundedTriangle(). Such a function does not exist in the Path class at the moment.

I know it is possible to draw a rounded triangle by first using path.addTriangle() and then path = path.createPathWithRoundedCorners(). But it took me three hours to find that functionality (I actually implemented a addRoundedTriangle() function from scratch, before finding the useful shortcut).

And you already have the function Path::addRoundedRectangle(). So to me it makes sense, to also add Path::addRoundedTriangle().

 


#2

Hmm... Probably not.. Feels a bit too specific to me to belong in such a basic class, especially since you can do the same thing with a single extra call.