I've been looking around the web for some tutorials on how to make nice shapes in PHP. But the shapes I get from the imagefilledpolygon(), etc. Is not really what I would call "nice".. The edges are ugly, and not smooth as I would like them.
The shape I would like to create should look something like this :

The reason I want to make theese with php is to get the corners in random angles.. And I want to have text in there.. But thats not my problem..
If you look at this picture created with php :

You should see what I mean with ugly edges. Not really smooth..
So could someone help me with how I should make these shapes the best way.. And maby how I could make the edges smooth?
Thanks!
/Artheus