From the course: Learning JavaFX GUI Development

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Challenge: Create a scene with random shapes and colors

Challenge: Create a scene with random shapes and colors

From the course: Learning JavaFX GUI Development

Start my 1-month free trial

Challenge: Create a scene with random shapes and colors

- [Voiceover] It's time for our next challenge. In this challenge, I'd like you to use the Javafx.scene.shape API. From the API, choose at least two different shapes, but feel free to add more. It's okay to try some of the shapes we've already talked about, such as line and circle and rectangle, but maybe try and find some that we haven't gone over yet. Try adding an arc or maybe an ellipse. In your program, use a loop to add several different instances of the shapes. I estimate that this challenge will take approximately 10 minutes. When you're done, check back and take a look at my solution.

Contents