• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Gradients

Objects in SVG can be filled or stroked with gradients, as well as with solid colors. A gradient is a smooth transition, or fade, from one color to another, or through a series of colors into other colors. You can use two types of gradients in SVG, linear gradients and radial gradients.

Linear Gradients

Figure 5-2 shows a rectangle filled with a linear gradient.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint