In this chapter:
Gradient Brushes 185
Tile Brushes 194
Generally the worlds of two-dimensional graphics and three-dimensional graphics are kept far apart. Each world has its own paradigms, its own classes for defining visible objects, and its own transforms. But the two worlds meet where brushes are concerned: Three-dimensional figures are always covered with two-dimensional surfaces. It seems reasonable that these surfaces could be colored and patterned with the array of brushes WPF provides for two-dimensional graphics, and that's precisely the case.
So far I've been decorating 3D figures with solid colors. In this chapter I'll show you how to use gradient brushes and tile brushes, ...