-
Notifications
You must be signed in to change notification settings - Fork 0
/
svg-penta-ex.00.html
67 lines (63 loc) · 1.44 KB
/
svg-penta-ex.00.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<!--
Taken from: TryIt SVG Star
<https://www.w3schools.com/html/tryit.asp?filename=tryhtml_svg_star>
See also: HTML SVG
<https://www.w3schools.com/html/html5_svg.asp>
-->
<head>
<title>SVG Pentagram Ex 00</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
<style>
*, *::before, *::after {
box-sizing:border-box;
margin:0; padding:0;
}
body {
background-color:rgb(255,255,255);
background:transparent;
font-size:2vh;
margin:0;
}
.svg-container {
display:flex;
width:80vw;
height:80vh;
margin:10vh auto;
text-align:center;
background-color:rgba(0,200,0,0.5);
}
svg {
flex:1 / 1 100%
width:100%;
height:100%;
}
polygon.pentagram {
fill: lime;
stroke: blue;
stroke-width: 5;
fill-rule: evenodd;
}
</style>
</head>
<body>
<div class="svg-container">
<svg>
<polygon points="100,10 40,198 190,78 10,78 160,198"
class="pentagram" />
</svg>
</div>
<div class="svg-container">
<svg height="210" width="500">
<polygon
points="100,10 40,198 190,78 10,78 160,198"
style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;"
/>
</svg>
</div>
</body>
</html>