-
Book Overview & Buying
-
Table Of Contents
Animating SwiftUI Applications
By :
In the last chapter, we built a game where the user had to find words by using the letters of a larger word. In this project, we will continue the “finding” theme and build another game, where the user must find colors within a broader color.
The goal of this project will be to generate a random RGB color and then have the user manipulate separate sliders for each of the individual RGB values in order to completely match that random color. For example, there will be one slider for red, one slider for green, and one slider for blue, with each slider containing a range from 0 to 255 (the range of each RGB value). Then, the user will have to adjust those sliders to see whether they can find the exact RGB random color.
We will also add three difficulty levels to the game, from easy to extreme. And if the user is skilled enough to work out the individual RGB values in the given color, we will display a shower of confetti over the user interface...