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

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.

主站蜘蛛池模板: 平顶山市| 富平县| 黎川县| 绍兴市| 长阳| 独山县| 维西| 彭泽县| 漯河市| 汉源县| 蒲江县| 南开区| 万源市| 安新县| 双鸭山市| 监利县| 桃江县| 临清市| 和林格尔县| 定结县| 贵港市| 华安县| 嘉荫县| 长海县| 水富县| 娄底市| 清丰县| 邯郸市| 普格县| 黑山县| 安多县| 新巴尔虎右旗| 吴江市| 岚皋县| 进贤县| 静宁县| 青铜峡市| 耒阳市| 罗城| 嘉祥县| 隆昌县|