Monday, February 10, 2014

Broken Snowman

The solution to the broken snowman problem would be
  1. Both the x-min and y-min would be 0 and the y-max would be 900 I think because the lowest segment is 700 down and has a radius of 200. The x-max, I think, would equal 515 because the right hand goes only as far as 550 and the left hand goes to the right 35. 
  2. The view box is now viewBox="0 0 515 900" 
  3. I have changed the height and width to be proportional: width="10.3cm" height="18cm"
  4. The scarf is broken in the sense that you moved it at the bottom of the file which no longer makes it the "back of scarf" but instead it has priority over all other shapes and is in the front everything.
I tested everything out on my snowman first, it was a bit tedious at first but now I figured out how to get rid of the white space so I will fix the broken snowman when I get the chance.

http://students.gctaa.net/~snicholakos/webgraphics/snowman.svg

1 comment:

  1. Awesome! The only remaining question I have is the role of stroke-width in calculating the minimum size of the viewBox. For example, if the stroke-width on the circle you make at the bottom, does that mean 5 points on each side? If so, you're y-max would need to be 905, not 900.

    See if you can figure this out.

    ReplyDelete