Contour gradients have color contours that follow the shape of the path being filled. Existing algorithms cannot create them in a resolution- and scale-independent way, causing visible rendering artifacts if enlarged. We describe a new method that approximates them with a set of paths filled by linear gradients. A 3D bevel of the path being filled gives both the shape of these paths and the information needed to compute gradient vectors for the linear gradients. Our representation is efficient, compact, and both resolution and scale independent.
Learn More