How to Craft a Snowman?
Let's build a snowman!
The snowman has three parts: head, body, and legs, and they are stacked vertically.
For each part, we can use a
space="-4") to allow the three parts to
overlap (so that they can be printed in one piece later).
After we've designed the snowman's overall structure, it's time to size the individual
parts so that it looks like a snowman, who should have bigger lower parts and
a relatively small head. To do this, we can utilize the transform command
scale 1.5 to
<body> to make the body 1.5 times large. We add
scale 2 to make the feet 2 times bigger. It does start to look more like a snowman.
Let's add some details. How about a pair of eyes? They should be added to
the head part. We can simply modify the content inside the
tag without touching the rest of the code. Here, we model the eyes using
a row of cubes, and we use the command to put the eyes
at the right place on the sphere.
Finally, let's add some colors to make the snowman look pretty! To do so,
we can add a
id="eyes") is added to the row representing the eyes so
we can refer to the eyes in a styling rule by
Done! We have a snowman!