Make a javafx application - circleoverlapjava - that


Make a JavaFX application - CircleOverlap.java - that presents 20 circles (use the JavaFX Circle class), each with a random radius and location. If a circle does not overlap any other circle, fill the circle with a Color of your choice (I used black but you don't have to). Fill overlapping circles with a translucent blue (alpha value of 0.3).

In addition, ensure the entire circle appears in the visible area of the Scene (no circle should go off the edge).

Note 1: start() and main() are the only methods required.

Note 2: Use an array to store the Circle objects, and check each new circle to see if it overlaps any previously created circle. DO NOT use an ArrayList.

Reminder 1: Two circles overlap if the distance between their center points is less than the sum of their radii.

Reminder 2: The distance between two points (x1,y1) and (x2,y2) on a flat surface is:

    ____________________
   /       2          2
 / (y2-y1)  + (x2-x1)

There is no input for this program

Solution Preview :

Prepared by a verified Expert
Business Management: Make a javafx application - circleoverlapjava - that
Reference No:- TGS02770685

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)