Last active
March 26, 2017 14:01
-
-
Save ktzanev/757b031952041390a78d7da856cb1a5a to your computer and use it in GitHub Desktop.
SVG - polygone/polyline (GistRun)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg { | |
border: 1px solid #eef; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment