Advertisement
cepxuozab

InterfaceStarTest

Aug 25th, 2023
717
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. void StarTest() {
  2. using namespace svg;
  3.     using namespace shapes;
  4.     using namespace std;
  5.         {
  6.             Document doc;
  7.             Star s(Point{50.0, 20.0}, 10.0, 4.0, 5);
  8.             s.Draw(doc);
  9.             doc.Render(cout);
  10.             cout << endl;
  11.         } {
  12.             Document doc;
  13.             Star s(Point{30.0, 20.0}, 13.0, 2.0, 1);
  14.             s.Draw(doc);
  15.             doc.Render(cout);
  16.         }
  17.     }
  18.  
  19. <?xml version="1.0" encoding="UTF-8" ?>
  20. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  21.   <polyline points="50,10 52.3511,16.7639 59.5106,16.9098 53.8042,21.2361 55.8779,28.0902 50,24 44.1221,28.0902 46.1958,21.2361 40.4894,16.9098 47.6489,16.7639 50,10" />
  22. </svg>
  23. <?xml version="1.0" encoding="UTF-8" ?>
  24. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  25.   <polyline points="30,7 30,22 30,7" />
  26. </svg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement