Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: dc387bb5cf08d019e13665a3b23062ddef4c3e72 (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
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" standalone="no"?>
<svg viewBox="-10 -10 200 300"
  xmlns="http://www.w3.org/2000/svg">
  <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="../css/map.css" type="text/css" />
  <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="../css/radial.css" type="text/css" />
  <style>
    #background {
      stroke: #304b75;
      fill: #bacae3;
    }

    pattern use {
      stroke: black;
      stroke-width: 0.3px;
    }

    .cw-60-deg {
      transform: rotate(60deg);
    }

    .ccw-60-deg {
      transform: rotate(-60deg);
    }
  </style>
  <defs>
    <polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5"/>

    <line id="ast-line" x1="-1.2" y1="0" x2="1.2" y2="0"/>

    <pattern id="asterisk" viewBox="-8.66 -15 17.32 30" width="17.32" height="30" patternUnits="userSpaceOnUse">
      <use y="-15" href="#ast-line"/>
      <use y="-15" style="transform-origin: 0 -15px;" class="cw-60-deg" href="#ast-line"/>
      <use y="-15" style="transform-origin: 0 -15px;" class="ccw-60-deg" href="#ast-line"/>
      <use y="15" href="#ast-line"/>
      <use y="15" style="transform-origin: 0 15px;" class="cw-60-deg" href="#ast-line"/>
      <use y="15" style="transform-origin: 0 15px;" class="ccw-60-deg" href="#ast-line"/>

      <use x="8.66" href="#ast-line"/>
      <use x="8.66" style="transform-origin: 8.66px 0;" class="cw-60-deg" href="#ast-line"/>
      <use x="8.66" style="transform-origin: 8.66px 0;" class="ccw-60-deg" href="#ast-line"/>
      <use x="-8.66" href="#ast-line"/>
      <use x="-8.66" style="transform-origin: -8.66px 0;" class="cw-60-deg" href="#ast-line"/>
      <use x="-8.66" style="transform-origin: -8.66px 0;" class="ccw-60-deg" href="#ast-line"/>
    </pattern>

    <image id="counter-prone" href="counter_prone.jpg" width="10"/>
    <image id="counter-grenade" href="counter_grenade.jpg" width="10"/>
  </defs>

  <g class="gameboard">
    <rect id="background"/>

    <rect id="dots" fill="url(#asterisk)"/>

    <g id="firing-arcs">
      <g id="shapes"/>
      <g id="lines"/>
    </g>

    <g class="grid" data-view-elevation="0"/>
  </g>
</svg>