Hello, does anyone have an idea how to draw a dynamic roundabout using java 2D?
Printable View
Hello, does anyone have an idea how to draw a dynamic roundabout using java 2D?
Your question is quite a bit general. I'm sure that many here could code something like that, but how does that help you? What is your specific question?
Actually, i have a class where i can draw roads, now i must be able to attach a roundabout to the roads. I have to create a class where i can draw a roundabout. I intended to draw the shape using Oval and Rectangle, but since i should be able to move the shape(roundabout) to attach it to the roads, I don't quite know how to proceed, whether i should use a path iterator or not.
Perhaps rather than ovals or ellipses, you should look at creating arcs and lines that would allow connections.