Java2D: Fill a convex rounded polygon (QuadCurves)
- by Martijn Courteaux
Hi,
If I have a QuadCurve like this (+ = node):
+ +
\ ./
+--??
And I fill it in Java 2D the result is something like this: (x = colored)
+xxxxxxxxx+
\xxxxxx./
+--??
But I want to color the other side:
+ +
x\ ./x
xxx +--??xx
xxxxxxxxxxx
This succeeds by drawing a rectangle around the curve in the color I…