Search for '{{search_term}}'

SVG Ellipse

CMOS is the Code-Maven Open Source podcast that also includes video interviews. Subscribe to this feed RSS feed with your Podcast listener app or via iTunes iTunes.

This is part of the SVG Tutorial and exercises drawing an ellipse in SVG.

examples/js/svg_ellipse.js

function ellipse() {
    var draw = SVG('ellipse_1');
    draw.size(200, 100);
    var ellipse = draw.ellipse(140, 70).attr({
        'fill'         : '#32AD4F',
        'stroke'       : '#723891',
        'stroke-width' : '3px'
    });
    ellipse.dx(5).dy(5);
}
ellipse();


Comments

In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus