SVGs: Shapes
In SVGs we do not need to draw everything with a path. For common basic shapes, there are predefined tags, that we can use. To create a square similar to the one in the last post for example, we can do this:
| |
This creates a 100x100px SVG, with a gray 50X50px square, with a red outline (stroke).
A circle takes a x and y coordinate (cx,cy) for the center point and a radius r.
| |
Tags:
Svg