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

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.

主站蜘蛛池模板: 阳原县| 永泰县| 浦江县| 金沙县| 万安县| 扶余县| 山阳县| 株洲县| 湖南省| 乌审旗| 孟州市| 汕尾市| 时尚| 莱西市| 印江| 滦南县| 泸定县| 崇礼县| 白银市| 蒙阴县| 徐闻县| 岳池县| 桑日县| 长治市| 卓资县| 肥东县| 石城县| 普格县| 凯里市| 新宁县| 凤山县| 息烽县| 洛阳市| 新营市| 屏东市| 彝良县| 独山县| 海晏县| 琼结县| 滁州市| 衡水市|