5

Java-Arcs

Arcs An arc is a part of an oval. In fact, we can think of an oval as a series of arcs that are connected together in an orderly manner. The drawArc( ) designed to draw arcs takes six arguments. The first four are the same as the arguments for drawOval( ) method and the … Read more…

Java-Circle and Color

Circle The Graphics class does not have any method for circles or ellipses. However, the drawOval( ) method can be used to draw a circle or an ellipse. Ovals are just like rectangles with overly rounded corners. The drawOval( ) method takes four arguments, the first two represent the top left corner of the oval … Read more…