Write a JavaFX application - CircleOverlap.java- that presents 20 circles (use the JavaFX Circleclass), each with a
Question:
Write a JavaFX application - CircleOverlap.java- that presents 20 circles (use the JavaFX Circleclass), 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 or assignment WILL NOT be graded. 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)
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell