Web UI for ARGUS server
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.

45 lines
1.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Text Testing</title>
  6. <link rel="stylesheet" href="../css/style.css">
  7. <!-- IE 9: display inline SVG -->
  8. <meta http-equiv="X-UA-Compatible" content="IE=9">
  9. <script type="text/javascript" src="../../dist/paper-full.js"></script>
  10. <script type="text/paperscript" canvas="canvas">
  11. var text = new PointText(new Point(50, 100));
  12. text.fillColor = 'black';
  13. text.content = 'This is a test';
  14. var text = new PointText(new Point(100, 150));
  15. text.fillColor = 'red';
  16. text.strokeWidth = '4';
  17. text.content = 'This is also a test';
  18. /*
  19. text.scale(5);
  20. text.translate(15, 15);
  21. text.rotate(20);
  22. text.shear(20, 5);
  23. */
  24. text.rotate(45);
  25. text.shear(.85, .15);
  26. text.scale(.85, 2);
  27. var path2 = new Path.Circle(new Point(100, 100), 50);
  28. path2.strokeColor = 'black';
  29. path2.shear(.5, .5);
  30. colors = ['red', 'blue', 'green', 'orange'];
  31. for (var i in path2.segments) {
  32. var p = path2.segments[i].point;
  33. var c = new Path.Circle(p, 2);
  34. c.fillColor = colors[i];
  35. }
  36. document.body.appendChild(project.exportSVG());
  37. </script>
  38. </head>
  39. <body>
  40. <canvas id="canvas" width="500" height="500"></canvas>
  41. </body>
  42. </html>