0

I'm creating a game in which I draw polygons of varying sizes and shapes using awt/Graphics2D. To smooth out the polygons, I want to use series of cubic Bezier curves to make smoother edges.

I spent some time poking around the Java awt and swing classes and saw the Bezier curves mentioned several times. I believe that awt has a class or two that allows me to define shapes out of Bezier curves, and more importantly, fill them. However, I have not been able to find that class yet and am hoping that you can point me in the right direction.

Here are the classes I found that mention Beziers:

http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/geom/PathIterator.html

2
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by SasseMan
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.