How to draw rounded square?

How to draw rounded square?
0.0 0

#1

I searched in google. I found a module for cpp to create a rounded rectangle.
Is there anything similar to do in javascript?


#2

Have a look at this