I need help to make code written in c# console application to show snowman shape.
I need help to make code written in c# console application to show snowman shape.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Mahesh ChandPosted Jun 11, 2008, 11:34 AM
Umm .. not sure how easy it would be in a console application. If you need in Windows Forms, that should not be difficult.
Do you need 3D or 2D? If 3D, you need to use DirectX. For 2D, try this sample:
http://www.c-sharpcorner.com/UploadFile/mgold/hangman11142005040831AM/hangman.aspx
Using the same approach, you can draw a snowman. You will need to use a GraphicsPath and add your shapes such as lines, circles, and rectangles to give it a shape. If you need to fill the shapes, you use GraphicsPath.FillX methods. If you need to fill different portions of the snowman with different colors, create seperate GraphicsPaths and fill them or fill the shapes (ellipse etc) seperately.