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
From the course: Learning JavaFX GUI Development
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.