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

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.

主站蜘蛛池模板: 大竹县| 中阳县| 双鸭山市| 嘉鱼县| 永丰县| 饶阳县| 都安| 南江县| 定安县| 蒙城县| 象山县| 绿春县| 泗阳县| 张家界市| 延庆县| 峡江县| 邵东县| 赤峰市| 莆田市| 衡南县| 岑溪市| 凤冈县| 曲沃县| 弥勒县| 长武县| 靖州| 芮城县| 铁岭市| 浦城县| 镇江市| 双城市| 上虞市| 邳州市| 汾阳市| 沙田区| 晋州市| 蓬溪县| 枝江市| 江津市| 五莲县| 巴彦县|