Advertisement
cepxuozab

SnowMan

Jun 5th, 2023
1,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. void SnowmanTest() {
  2. using namespace svg;
  3.     using namespace shapes;
  4.     using namespace std;
  5.         {
  6.             Document doc;
  7.             Snowman s(Point{30, 20}, 10.0);
  8.             s.Draw(doc);
  9.             doc.Render(cout);
  10.             cout << std::endl;
  11.         } {
  12.             Document doc;
  13.             Snowman s(Point{33, 10}, 12.0);
  14.             s.Draw(doc);
  15.             doc.Render(cout);
  16.         }
  17.     }
  18.  
  19. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  20.   <circle cx="30" cy="70" r="20" />
  21.   <circle cx="30" cy="40" r="15" />
  22.   <circle cx="30" cy="20" r="10" />
  23. </svg>
  24. <?xml version="1.0" encoding="UTF-8" ?>
  25. <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  26.   <circle cx="33" cy="70" r="24" />
  27.   <circle cx="33" cy="34" r="18" />
  28.   <circle cx="33" cy="10" r="12" />
  29. </svg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement