Advertisement
cepxuozab

StarTest

Feb 20th, 2024
1,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1. void StarTest() {
  2.         {
  3.             Document doc;
  4.             Star s(Point{50.0, 20.0}, 10.0, 4.0, 5);
  5.             s.Draw(doc);
  6.             doc.Render(cout);
  7.             cout << endl;
  8.         } {
  9.             Document doc;
  10.             Star s(Point{30.0, 20.0}, 13.0, 2.0, 1);
  11.             s.Draw(doc);
  12.             doc.Render(cout);
  13.              cout << endl;
  14.               cout << endl;
  15.                cout << endl;
  16.         }
  17.     }
  18.  
  19.  
  20. <?xml version="1.0" encoding="UTF-8" ?>
  21. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  22.   <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" fill="red" stroke="black"/>
  23. </svg>
  24. <?xml version="1.0" encoding="UTF-8" ?>
  25. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  26.   <polyline points="30,7 30,22 30,7" fill="red" stroke="black"/>
  27. </svg>
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement