Let’s upgrade the Christmas Ornament we created on the first day. Here’s the code we ended up with:
0, 0
200, 200
We can add a subtle 3D effect by filling the main circle with a gradient. Here we define a radialGradient in the defs section. It has a different syntax than CSS, but the capabilities are rather similar.
We define its ID, center position with cx and cy, set its radian, and the stop colors. Then we can use it as an attribute for the fill property of a shape.
0, 0
200, 200
Building a Snowman
For the snowman we draw two circles with a similar gradient as follows.
-100, -100
200, 200
Then we add a polygon for the nose, two circles for the eyes, and two lines for the arm. Simple.