summaryrefslogtreecommitdiffstats
path: root/playgrounds/matrix/matrix.html
blob: cd34b7d944d0c7a24eb251a68a193a6a51e1041a (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
<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <title>SVG Playground</title>
    <link rel="stylesheet" href="../playground.css">
  </head>

  <body>

    <h1>SVG Transformations</h1>

    <p>
      This playground tests the <code>compose/decompose</code> functionality in
      svg matrix, as well as the draggable code and the transformations.
    </p>

    <svg viewBox="-200 -200 400 400">

      <g id="tester">
        <rect class="green" width=50 height=50 />
        <line x2=50 stroke=black stroke-width=1 />
      </g>

      <g id="guess">
        <rect class="dark-pink" width=50 height=50 opacity=0.5 />
        <line x2=50 stroke=black stroke-width=1 />
      </g>
      <g id="true">
        <rect class="pink" width=50 height=50 opacity=0.5 />
        <line x2=50 stroke=black stroke-width=1 />
      </g>
      <ellipse id="or" class="dark-pink" rx=5 ry=5 />
      <ellipse id="b1" class="pink" cx="50" rx=5 ry=5 />
      <ellipse id="b2" class="green" cy="50" rx=5 ry=5 />

    </svg>

  </body>

  <script src="../../dist/svg.js" charset="utf-8"></script>
  <script src="drag.js" charset="utf-8"></script>
  <script src="matrix.js" charset="utf-8"></script>

</html>