Antialiased circles

Member
Posts: 161
Joined: 2005.07
Post: #1
What would be the best way to draw antialiased circles of various sizes? The circles will look something like this:

[Image: circle.png]

The edge thickness can be defined beforehand since it won't change, but the radius of the circle will change fairly often.

Thanks in advance.
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #2
With a texture, scaled as needed.

If you need perfectly constant thickness width, I'd go with 2 textures, one black circle behind, and one slightly smaller circle on top.

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Member
Posts: 161
Joined: 2005.07
Post: #3
Ohh... two layered textures. Very clever. I was thinking of doing a triangle fan at first, but I could already tell the performance of that wasn't going to be up to snuff. Your idea will definitely work fine. Thanks!
Quote this message in a reply
Post Reply