Rounded polygon


#1

Hi everybody. Is there any way to create rounded polygon? Maybe there is some custom library for this?

Thank you!


#2

Can you show an example? like screenshot or something.


#3

Hi Nite,

I mean something like this. The top polygon is simple, the bottom one is rounded. I need to create rounded polygons.


#4

There is no rounded rectangle drawing method implemented in cocos2d-x. You can draw a rounded rectangle by creating the vertices manually.

Oval corners could be like this :

Another approach is using 9-slice scaling.


#5

Check this link