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

Combining Ellipses

You likely know that by combining two ellipses that differ only slightly in size and shape, you can obtain a variety of interesting and attractive curved shapes. For example, with the following code:

Listing 3.14. (Ellipses02.svg)

<?xml version="1.0" standalone="no"?> 
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" 
      "http://www.w3.org/TR/2001/PR-SVG-20010719/ 
       DTD/svg10.dtd"> 
<svg> 
<ellipse cx="80" cy="170" rx="350" ry="100" 
style="stroke:none; fill:red"/> 
<ellipse cx="50" cy="172" rx="360" ry="110" 
style="stroke:none; fill:white"/> 
</svg> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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