Skip to content

Instantly share code, notes, and snippets.

@ktzanev
Last active March 26, 2017 14:01
Show Gist options
  • Save ktzanev/757b031952041390a78d7da856cb1a5a to your computer and use it in GitHub Desktop.
Save ktzanev/757b031952041390a78d7da856cb1a5a to your computer and use it in GitHub Desktop.
SVG - polygone/polyline (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>
<polygon fill="yellow" stroke="blue" stroke-width="2"
points="15,90 30,50 30,10 70,10 70,50 85,90" />
<polyline fill="yellow" stroke="red" stroke-width="2"
points="15,90 30,50 30,10 70,10 70,50 85,90" transform="translate(100)"/>
</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