Mozilla.com

  1. MDC
  2. Main Page
  3. SVG
  4. ellipse
« SVG Reference home    [ Examples | Attributes | Properties | Methods | Related ]

The ellipse element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius.

Ellipses are unable to specify the exact orientation of the ellipse (if, for example, you wanted to draw an ellipse titled at a 45 degree angle), but can be rotated without using transform attributes.

Example

<?xml version="1.0" standalone="no"?>
<svg width="120" height="120" version="1.1"
     xmlns="http://www.w3.org/2000/svg">
  <ellipse cx="60" cy="60" rx="30" ry="60"
     fill="red" stroke="black"/>
</svg>

Properties

Methods

Related

Elements

circle

Interfaces
External Examples

W3Schools example

Page last modified 19:17, 12 Mar 2008 by Wjjohnst

Tags:

Files (0)