You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SVG Playground</title>
  6. <link rel="stylesheet" href="style.css">
  7. </head>
  8. <body>
  9. <h1>SVG Transformations</h1>
  10. <p>
  11. This playground tests the <code>compose/decompose</code> functionality in
  12. svg matrix, as well as the draggable code and the transformations.
  13. </p>
  14. <svg viewBox="-200 -200 400 400">
  15. <g id="tester">
  16. <rect class="green" width=50 height=50 />
  17. <line x2=50 stroke=black stroke-width=1 />
  18. </g>
  19. <g id="guess">
  20. <rect class="dark-pink" width=50 height=50 opacity=0.5 />
  21. <line x2=50 stroke=black stroke-width=1 />
  22. </g>
  23. <g id="true">
  24. <rect class="pink" width=50 height=50 opacity=0.5 />
  25. <line x2=50 stroke=black stroke-width=1 />
  26. </g>
  27. <ellipse id="or" class="dark-pink" rx=5 ry=5 />
  28. <ellipse id="b1" class="pink" cx="50" rx=5 ry=5 />
  29. <ellipse id="b2" class="green" cy="50" rx=5 ry=5 />
  30. </svg>
  31. </body>
  32. <script src="../../dist/svg.js" charset="utf-8"></script>
  33. <script src="drag.js" charset="utf-8"></script>
  34. <script src="matrix.js" charset="utf-8"></script>
  35. </html>