Skip to content

Instantly share code, notes, and snippets.

@ktzanev
Last active March 26, 2017 14:40
Show Gist options
  • Save ktzanev/908731b7b4249646cf176e3085c8b1ec to your computer and use it in GitHub Desktop.
Save ktzanev/908731b7b4249646cf176e3085c8b1ec to your computer and use it in GitHub Desktop.
SVG - circle/ellipse (GistRun)
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Exemple commande SVG</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Exemple commande SVG</h1>
<svg viewBox="-100 -50 200 100">
<circle fill="magenta"
cx="0" cy="0" r="30" />
<ellipse fill="none" stroke="yellow" transform="rotate(30)"
cx="0" cy="0" rx="15" ry="45" />
</svg>
</body>
</html>
svg {
border: 1px solid #eef;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment