Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: 9dbee6370bd9b7a3b345c6fdd2c57665acaf992f (plain)
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
<!DOCTYPE html>
<html>
  <head>
    <style>
      polygon {
        fill: inherit;
        stroke: black;
        stroke-width: 0.5px;
      }

      svg {
        border: 1px solid slategray;
        fill: none;
      }

      text {
        font-size: 4px;
        text-anchor: middle;
        user-select: none;
        font-family: sans-serif;
        fill: black;
      }

      .buildings .elevation-basement {
        fill: lightgray;
        /* display: none; */
      }

      .elevation-1 {
        /* display: none; */
      }

      .buildings .elevation-1 {
        fill: lightgreen;
        /* display: none; */
      }

      .buildings .elevation-2 {
        fill: lightpink;
        display: none;
      }
    </style>
  </head>
  <body>
    <svg viewBox="-300 -200 600 400" xmlns="http://www.w3.org/2000/svg">
      <defs>
        <polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5"/>
      </defs>
    </svg>
    <script src="radial.js"></script>
  </body>
</html>