cepxuozab

MultySnowman

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