官术网_书友最值得收藏!

Manually adding elements and shapes

An SVG image is a collection of elements rendered as shapes and comes with a set of seven basic elements; almost all of these are just an easier way to define a path:

  • Straight lines (a path with two points)
  • Rectangles (a path with four points and right angles)
  • Circles (a round path)
  • Ellipses (an oblong path)
  • Polylines (a path comprising straight lines)
  • Polygons (a path comprising straight lines that closes in on itself)
  • Text (the only one that isn't a path)

You build SVG images by adding these elements to the document and defining some attributes. All of them can have a stroke style defining how the edge is rendered, a fill style defining how the shape is filled, and all of them can be rotated, skewed, or moved using the transform attribute.

主站蜘蛛池模板: 灵台县| 习水县| 南阳市| 临潭县| 沁源县| 溧阳市| 南雄市| 普兰县| 湖口县| 井冈山市| 会东县| 崇礼县| 鹿泉市| 香河县| 寿阳县| 原平市| 安康市| 灵川县| 定远县| 敦化市| 灵川县| 田阳县| 铜陵市| 宁乡县| 崇仁县| 屏东县| 玉环县| 九寨沟县| 监利县| 呼和浩特市| 商南县| 公主岭市| 新乡县| 巴青县| 通州市| 蒙城县| 南郑县| 明水县| 寻甸| 合江县| 昌黎县|