February 2019
Intermediate to advanced
292 pages
6h 55m
English
A pattern is a function that accepts a point in space and returns a color. For example, consider the following stripe pattern:

As the x coordinate changes, the pattern alternates between the two colors. The other two dimensions, y and z, have no effect on it. In other words, the function looks like this:
That is to say, if the x coordinate is between 0 and 1, return the first color. If between 1 and 2, return the second, and so forth, alternating between the two.
Add this pattern in your program. To do so, you’ll create ...
Read now
Unlock full access