svgdef.svg 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. <?xml version="1.0"?>
  2. <!-- Generated by SVGo -->
  3. <svg width="4500" height="3375"
  4. xmlns="http://www.w3.org/2000/svg"
  5. xmlns:xlink="http://www.w3.org/1999/xlink">
  6. <desc>Object Definitions</desc>
  7. <defs>
  8. <linearGradient id="linear" x1="0%" y1="0%" x2="100%" y2="0%">
  9. <stop offset="0%" stop-color="white" stop-opacity="1.00"/>
  10. <stop offset="25%" stop-color="lightblue" stop-opacity="1.00"/>
  11. <stop offset="75%" stop-color="blue" stop-opacity="1.00"/>
  12. <stop offset="100%" stop-color="rgb(0,0,127)" stop-opacity="1.00"/>
  13. </linearGradient>
  14. <radialGradient id="radial" cx="0%" cy="0%" r="100%" fx="50%" fy="50%">
  15. <stop offset="0%" stop-color="white" stop-opacity="1.00"/>
  16. <stop offset="25%" stop-color="lightblue" stop-opacity="1.00"/>
  17. <stop offset="75%" stop-color="blue" stop-opacity="1.00"/>
  18. <stop offset="100%" stop-color="rgb(0,0,127)" stop-opacity="1.00"/>
  19. </radialGradient>
  20. <path d="M 0,0 A62,62 0 0 1 250,0" id="tpath" />
  21. <g id="square">
  22. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  23. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  24. <rect x="0" y="0" width="125" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  25. <text x="62" y="-24" style="fill:gray; text-anchor:middle">w</text>
  26. <text x="62" y="149" style="fill:black; text-anchor:middle;font-size:24px">Square(x, y, w int, style ...string)</text>
  27. </g>
  28. <g id="rect">
  29. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  30. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  31. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  32. <text x="-24" y="62" style="fill:gray; text-anchor:middle">h</text>
  33. <text x="125" y="-24" style="fill:gray; text-anchor:middle">w</text>
  34. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Rect(x, y, w, h int, style ...string)</text>
  35. </g>
  36. <g id="crect">
  37. <circle cx="125" cy="62" r="4" style="fill:rgb(220,220,220)"/>
  38. <text x="125" y="38" style="fill:gray; text-anchor:middle">x, y</text>
  39. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  40. <text x="-24" y="62" style="fill:gray; text-anchor:middle">h</text>
  41. <text x="125" y="-24" style="fill:gray; text-anchor:middle">w</text>
  42. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">CenterRect(x, y, w, h int, style ...string)</text>
  43. </g>
  44. <g id="roundrect">
  45. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  46. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  47. <rect x="0" y="0" width="250" height="125" rx="25" ry="25" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  48. <text x="-24" y="62" style="fill:gray; text-anchor:middle">h</text>
  49. <text x="125" y="-24" style="fill:gray; text-anchor:middle">w</text>
  50. <line x1="25" y1="0" x2="25" y2="25" style="stroke:black; stroke-width:1"/>
  51. <line x1="0" y1="25" x2="25" y2="25" style="stroke:black; stroke-width:1"/>
  52. <text x="49" y="13" style="fill:gray; text-anchor:middle">ry</text>
  53. <text x="12" y="49" style="fill:gray; text-anchor:middle">rx</text>
  54. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Roundrect(x, y, w, h, rx, ry int, style ...string)</text>
  55. </g>
  56. <g id="polygon">
  57. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  58. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  59. <circle cx="125" cy="-31" r="4" style="fill:rgb(220,220,220)"/>
  60. <text x="125" y="-55" style="fill:gray; text-anchor:middle">x, y</text>
  61. <circle cx="250" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  62. <text x="250" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  63. <circle cx="250" cy="93" r="4" style="fill:rgb(220,220,220)"/>
  64. <text x="250" y="69" style="fill:gray; text-anchor:middle">x, y</text>
  65. <circle cx="125" cy="62" r="4" style="fill:rgb(220,220,220)"/>
  66. <text x="125" y="38" style="fill:gray; text-anchor:middle">x, y</text>
  67. <circle cx="0" cy="93" r="4" style="fill:rgb(220,220,220)"/>
  68. <text x="0" y="69" style="fill:gray; text-anchor:middle">x, y</text>
  69. <polygon points="0,0 125,-31 250,0 250,93 125,62 0,93" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  70. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Polygon(x, y []int, style ...string)</text>
  71. </g>
  72. <g id="circle">
  73. <g transform="translate(125,62)">
  74. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  75. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  76. <circle cx="0" cy="0" r="62" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  77. <line x1="0" y1="0" x2="62" y2="0" style="stroke:black; stroke-width:1"/>
  78. <text x="31" y="24" style="fill:gray; text-anchor:middle">r</text>
  79. <text x="0" y="86" style="fill:black; text-anchor:middle;font-size:24px">Circle(x, y, r int, style ...string)</text>
  80. </g>
  81. </g>
  82. <g id="ellipse">
  83. <g transform="translate(125,62)">
  84. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  85. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  86. <ellipse cx="0" cy="0" rx="125" ry="62" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  87. <line x1="0" y1="0" x2="125" y2="0" style="stroke:black; stroke-width:1"/>
  88. <line x1="0" y1="0" x2="0" y2="62" style="stroke:black; stroke-width:1"/>
  89. <text x="62" y="24" style="fill:gray; text-anchor:middle">rx</text>
  90. <text x="-24" y="31" style="fill:gray; text-anchor:middle">ry</text>
  91. <text x="0" y="86" style="fill:black; text-anchor:middle;font-size:24px">Ellipse(x, y, rx, ry int, style ...string)</text>
  92. </g>
  93. </g>
  94. <g id="line">
  95. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  96. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x1, y1</text>
  97. <circle cx="250" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  98. <text x="250" y="-24" style="fill:gray; text-anchor:middle">x2, y2</text>
  99. <line x1="0" y1="0" x2="250" y2="0" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  100. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Line(x1, y1, x2, y2 int, style ...string)</text>
  101. </g>
  102. <g id="polyline">
  103. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  104. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  105. <circle cx="83" cy="-62" r="4" style="fill:rgb(220,220,220)"/>
  106. <text x="83" y="-86" style="fill:gray; text-anchor:middle">x, y</text>
  107. <circle cx="187" cy="-41" r="4" style="fill:rgb(220,220,220)"/>
  108. <text x="187" y="-65" style="fill:gray; text-anchor:middle">x, y</text>
  109. <circle cx="250" cy="-125" r="4" style="fill:rgb(220,220,220)"/>
  110. <text x="250" y="-149" style="fill:gray; text-anchor:middle">x, y</text>
  111. <polyline points="0,0 83,-62 187,-41 250,-125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  112. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Polyline(x, y []int, style ...string)</text>
  113. </g>
  114. <g id="arc">
  115. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  116. <text x="0" y="-24" style="fill:gray; text-anchor:middle">sx, sy</text>
  117. <circle cx="250" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  118. <text x="250" y="-24" style="fill:gray; text-anchor:middle">ex, ey</text>
  119. <path d="M0,0 A62,62 0 0 1 250,0" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  120. <text x="125" y="148" style="fill:black; text-anchor:middle;font-size:24px">Arc(sx, sy, ax, ay, r int, lflag, sflag bool, ex, ey int, style ...string)</text>
  121. </g>
  122. <g id="path">
  123. <path d="M36,5l12,41l12-41h33v4l-13,21c30,10,2,69-21,28l7-2c15,27,33,-22,3,-19v-4l12-20h-15l-17,59h-1l-13-42l-12,42h-1l-20-67h9l12,41l8-28l-4-13h9" fill="rgb(0,0,127)" />
  124. <path d="M94,53c15,32,30,14,35,7l-1-7c-16,26-32,3-34,0M122,16c-10-21-34,0-21,30c-5-30 16,-38 23,-21l5-10l-2-9" style="fill-opacity:0.50; fill:rgb(0,0,0)"/>
  125. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  126. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  127. <text x="62" y="160" style="fill:black; text-anchor:middle;font-size:24px">Path(s string, style ...string)</text>
  128. </g>
  129. <g id="qbez">
  130. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  131. <text x="0" y="-24" style="fill:gray; text-anchor:middle">sx, sy</text>
  132. <circle cx="41" cy="-93" r="4" style="fill:rgb(220,220,220)"/>
  133. <text x="41" y="-117" style="fill:gray; text-anchor:middle">cx, cy</text>
  134. <circle cx="250" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  135. <text x="250" y="-24" style="fill:gray; text-anchor:middle">ex, ey</text>
  136. <path d="M0,0 Q41,-93 250,0" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  137. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Qbez(sx, sy, cx, cy, ex, ey int, style ...string)</text>
  138. </g>
  139. <g id="bezier">
  140. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  141. <text x="0" y="-24" style="fill:gray; text-anchor:middle">sx, sy</text>
  142. <circle cx="125" cy="-62" r="4" style="fill:rgb(220,220,220)"/>
  143. <text x="125" y="-86" style="fill:gray; text-anchor:middle">cx, cy</text>
  144. <circle cx="125" cy="62" r="4" style="fill:rgb(220,220,220)"/>
  145. <text x="125" y="38" style="fill:gray; text-anchor:middle">px, py</text>
  146. <circle cx="250" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  147. <text x="250" y="-24" style="fill:gray; text-anchor:middle">ex, ey</text>
  148. <path d="M0,0 C125,-62 125,62 250,0" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  149. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Bezier(sx, sy, cx, cy, px, py, ex, ey int, style ...string)</text>
  150. </g>
  151. <g id="image">
  152. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  153. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  154. <rect x="0" y="0" width="128" height="128" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  155. <text x="-24" y="64" style="fill:gray; text-anchor:middle">h</text>
  156. <text x="64" y="-24" style="fill:gray; text-anchor:middle">w</text>
  157. <image x="0" y="0" width="128" height="128" xlink:href="gophercolor128x128.png" />
  158. <text x="64" y="152" style="fill:black; text-anchor:middle;font-size:24px">Image(x, y, w, h, int path string, style ...string)</text>
  159. </g>
  160. <g id="lgrad">
  161. <rect x="0" y="0" width="250" height="125" style="fill:url(#linear)"/>
  162. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  163. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x1%, y1%</text>
  164. <circle cx="250" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  165. <text x="250" y="-24" style="fill:gray; text-anchor:middle">x2%, y2%</text>
  166. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">LinearGradient(s string, x1, y1, x2, y2 uint8, oc []Offcolor)</text>
  167. </g>
  168. <g id="rgrad">
  169. <rect x="0" y="0" width="250" height="125" style="fill:url(#radial)"/>
  170. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  171. <text x="0" y="-24" style="fill:gray; text-anchor:middle">cx%, cy%</text>
  172. <circle cx="125" cy="62" r="4" style="fill:rgb(220,220,220)"/>
  173. <text x="125" y="38" style="fill:gray; text-anchor:middle">fx%, fy%</text>
  174. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">RadialGradient(s string, cx, cy, r, fx, fy uint8, oc []Offcolor)</text>
  175. </g>
  176. <g id="trans">
  177. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  178. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  179. <circle cx="167" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  180. <text x="167" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  181. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Translate(x, y int)</text>
  182. <rect x="0" y="0" width="83" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  183. <g transform="translate(167,0)">
  184. <rect x="0" y="0" width="83" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  185. </g>
  186. </g>
  187. <g id="grid">
  188. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  189. <text x="0" y="-24" style="fill:gray; text-anchor:middle">x, y</text>
  190. <text x="-24" y="62" style="fill:gray; text-anchor:middle">h</text>
  191. <text x="125" y="-24" style="fill:gray; text-anchor:middle">w</text>
  192. <text x="55" y="15" style="fill:gray; text-anchor:middle">n</text>
  193. <g style="stroke:rgb(0,0,127)">
  194. <line x1="0" y1="0" x2="0" y2="125" />
  195. <line x1="31" y1="0" x2="31" y2="125" />
  196. <line x1="62" y1="0" x2="62" y2="125" />
  197. <line x1="93" y1="0" x2="93" y2="125" />
  198. <line x1="124" y1="0" x2="124" y2="125" />
  199. <line x1="155" y1="0" x2="155" y2="125" />
  200. <line x1="186" y1="0" x2="186" y2="125" />
  201. <line x1="217" y1="0" x2="217" y2="125" />
  202. <line x1="248" y1="0" x2="248" y2="125" />
  203. <line x1="0" y1="0" x2="250" y2="0" />
  204. <line x1="0" y1="31" x2="250" y2="31" />
  205. <line x1="0" y1="62" x2="250" y2="62" />
  206. <line x1="0" y1="93" x2="250" y2="93" />
  207. <line x1="0" y1="124" x2="250" y2="124" />
  208. </g>
  209. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Grid(x, y, w, h, n int, style ...string)</text>
  210. </g>
  211. <g id="text">
  212. <circle cx="0" cy="62" r="4" style="fill:rgb(220,220,220)"/>
  213. <text x="0" y="86" style="fill:gray; text-anchor:middle">x, y</text>
  214. <text x="0" y="62" style="text-anchor:start;font-size:32pt">hello, this is SVG</text>
  215. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Text(x, y int, s string, style ...string)</text>
  216. </g>
  217. <g id="scale">
  218. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  219. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  220. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  221. <g transform="scale(0.5)">
  222. <rect x="0" y="0" width="250" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  223. </g>
  224. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Scale(n float64)</text>
  225. </g>
  226. <g id="scalexy">
  227. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  228. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  229. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  230. <g transform="scale(0.5,0.75)">
  231. <rect x="0" y="0" width="250" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  232. </g>
  233. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">ScaleXY(x, y float64)</text>
  234. </g>
  235. <g id="skewx">
  236. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  237. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  238. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  239. <g transform="skewX(30)">
  240. <rect x="0" y="0" width="250" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  241. </g>
  242. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">SkewX(a float64)</text>
  243. </g>
  244. <g id="skewy">
  245. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  246. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  247. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  248. <g transform="skewY(10)">
  249. <rect x="0" y="0" width="250" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  250. </g>
  251. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">SkewY(a float64)</text>
  252. </g>
  253. <g id="skewxy">
  254. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  255. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  256. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  257. <g transform="skewX(10) skewY(10)">
  258. <rect x="0" y="0" width="250" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  259. </g>
  260. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">SkewXY(x, y float64)</text>
  261. </g>
  262. <g id="rotate">
  263. <circle cx="0" cy="0" r="4" style="fill:rgb(220,220,220)"/>
  264. <text x="0" y="-24" style="fill:gray; text-anchor:middle">0, 0</text>
  265. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Rotate(r float64)</text>
  266. <rect x="0" y="0" width="250" height="125" style="fill:none; stroke-width:2;stroke:rgb(0,0,127)"/>
  267. <path d="M125,0 Q135,31 108,62" style="fill:none;stroke:gray"/>
  268. <text x="62" y="24" style="fill:gray; text-anchor:middle">r</text>
  269. <g transform="rotate(30)">
  270. <rect x="0" y="0" width="250" height="125" style="fill-opacity:0.25;fill:rgb(0,0,127)"/>
  271. </g>
  272. </g>
  273. <g id="textpath">
  274. <text fill="rgb(0,0,127)" text-anchor="start" font-size="16pt" ><textPath xlink:href="#tpath">It&#39;s &#34;fine&#34; &amp; &#34;dandy&#34; to draw text along a path</textPath></text>
  275. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">Textpath(s, pathid string, style ...string)</text>
  276. </g>
  277. <g id="meta">
  278. <g style="font-size:24px;fill:black;text-anchor:start">
  279. <text x="0" y="24" >New(w io Writer)</text>
  280. <text x="0" y="52" >Start(w, h int, options ...string)/End()</text>
  281. <text x="0" y="80" >Startview(w, h, minx, miny, vw, vh int)</text>
  282. <text x="0" y="108" >Group(s ...string)/Gend()</text>
  283. <text x="0" y="136" >Gstyle(s string)/Gend()</text>
  284. <text x="0" y="164" >Gtransform(s string)/Gend()</text>
  285. <text x="0" y="192" >Gid(id string)/Gend()</text>
  286. <text x="0" y="220" >ClipPath(s ...string)/ClipEnd()</text>
  287. <text x="0" y="248" >Def()/DefEnd()</text>
  288. <text x="0" y="276" >Marker()/MarkerEnd()</text>
  289. <text x="0" y="304" >Pattern()/PatternEnd()</text>
  290. <text x="0" y="332" >Desc(s string)</text>
  291. <text x="0" y="360" >Title(s string)</text>
  292. <text x="0" y="388" >Script(type, data ...string)</text>
  293. <text x="0" y="416" >Mask(id string, x,y,w,h int, style ...string)/MaskEnd()</text>
  294. <text x="0" y="444" >Link(href string, title string)/LinkEnd()</text>
  295. <text x="0" y="472" >Use(x int, y int, link string, style ...string)</text>
  296. </g>
  297. <g style="font-size:24px;fill:rgb(127,127,127);text-anchor:start">
  298. <text x="650" y="24" >specify destination</text>
  299. <text x="650" y="52" >begin/end the document</text>
  300. <text x="650" y="80" >begin/end the document with viewport</text>
  301. <text x="650" y="108" >begin/end group with attributes</text>
  302. <text x="650" y="136" >begin/end group style</text>
  303. <text x="650" y="164" >begin/end group transform</text>
  304. <text x="650" y="192" >begin/end group id</text>
  305. <text x="650" y="220" >begin/end clip path</text>
  306. <text x="650" y="248" >begin/end a defintion block</text>
  307. <text x="650" y="276" >begin/end markers</text>
  308. <text x="650" y="304" >begin/end pattern</text>
  309. <text x="650" y="332" >set the description element</text>
  310. <text x="650" y="360" >set the title element</text>
  311. <text x="650" y="388" >define a script</text>
  312. <text x="650" y="416" >begin/end mask element</text>
  313. <text x="650" y="444" >begin/end link to href, with a title</text>
  314. <text x="650" y="472" >use defined objects</text>
  315. </g>
  316. <text x="500" y="534" style="fill:black; text-anchor:middle;font-size:24px">Textlines(x, y int, s []string, size, spacing int, fill, align string)</text>
  317. </g>
  318. <g id="rgb">
  319. <g style="fill:gray; text-anchor:middle">
  320. <circle cx="62" cy="0" r="15" style="fill:rgb(44,0,0)"/>
  321. <circle cx="125" cy="0" r="15" style="fill:rgb(0,77,0)"/>
  322. <circle cx="187" cy="0" r="15" style="fill:rgb(0,0,232)"/>
  323. <circle cx="250" cy="0" r="15" style="fill:rgb(44,77,232)"/>
  324. <text x="62" y="62" >r</text>
  325. <text x="125" y="62" >g</text>
  326. <text x="187" y="62" >b</text>
  327. <text x="219" y="8" >-&gt;</text>
  328. </g>
  329. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">RGB(r, g, b int)</text>
  330. </g>
  331. <g id="rgba">
  332. <g style="fill:gray; text-anchor:middle">
  333. <circle cx="62" cy="0" r="15" style="fill:rgb(44,0,0)"/>
  334. <circle cx="125" cy="0" r="15" style="fill:rgb(0,77,0)"/>
  335. <circle cx="187" cy="0" r="15" style="fill:rgb(0,0,232)"/>
  336. <circle cx="250" cy="0" r="15" style="fill-opacity:0.33; fill:rgb(44,77,232)"/>
  337. <circle cx="260" cy="0" r="15" style="fill-opacity:0.33; fill:rgb(44,77,232)"/>
  338. <text x="250" y="62" >alpha</text>
  339. <text x="62" y="62" >r</text>
  340. <text x="125" y="62" >g</text>
  341. <text x="187" y="62" >b</text>
  342. <text x="219" y="8" >-&gt;</text>
  343. </g>
  344. <text x="125" y="149" style="fill:black; text-anchor:middle;font-size:24px">RGBA(r, g, b int, opacity float64)</text>
  345. </g>
  346. </defs>
  347. <title>SVG Go Library Description</title>
  348. <rect x="0" y="0" width="4500" height="3375" style="fill:white;stroke:black;stroke-width:2"/>
  349. <g style="font-family:Calibri,sans; text-anchor:middle; font-size:24px">
  350. <a xlink:href="http://github.com/ajstarks/svgo" xlink:title="SVGo Library">
  351. <text x="2250" y="150" style="font-size:125px">SVG Go Library</text>
  352. <text x="2250" y="200" style="font-size:50px;fill:gray">github.com/ajstarks/svgo</text>
  353. </a>
  354. <desc>Object Usage</desc>
  355. <g transform="translate(400,400)">
  356. <use x="0" y="0" xlink:href="#rect" />
  357. <use x="700" y="0" xlink:href="#crect" />
  358. <use x="1400" y="0" xlink:href="#roundrect" />
  359. <use x="2100" y="0" xlink:href="#square" />
  360. <use x="2800" y="0" xlink:href="#line" />
  361. <use x="3500" y="0" xlink:href="#polyline" />
  362. </g>
  363. <g transform="translate(400,1000)">
  364. <use x="0" y="0" xlink:href="#polygon" />
  365. <use x="700" y="0" xlink:href="#circle" />
  366. <use x="1400" y="0" xlink:href="#ellipse" />
  367. <use x="2100" y="0" xlink:href="#arc" />
  368. <use x="2800" y="0" xlink:href="#qbez" />
  369. <use x="3500" y="0" xlink:href="#bezier" />
  370. </g>
  371. <g transform="translate(400,1600)">
  372. <use x="0" y="0" xlink:href="#trans" />
  373. <use x="700" y="0" xlink:href="#scale" />
  374. <use x="1400" y="0" xlink:href="#scalexy" />
  375. <use x="2100" y="0" xlink:href="#skewx" />
  376. <use x="2800" y="0" xlink:href="#skewy" />
  377. <use x="3500" y="0" xlink:href="#skewxy" />
  378. </g>
  379. <g transform="translate(400,2200)">
  380. <use x="0" y="0" xlink:href="#rotate" />
  381. <use x="700" y="0" xlink:href="#text" />
  382. <use x="1400" y="0" xlink:href="#textpath" />
  383. <use x="2100" y="0" xlink:href="#path" />
  384. <use x="2800" y="0" xlink:href="#image" />
  385. <use x="3500" y="0" xlink:href="#grid" />
  386. </g>
  387. <g transform="translate(400,2800)">
  388. <use x="0" y="0" xlink:href="#lgrad" />
  389. <use x="700" y="0" xlink:href="#rgrad" />
  390. <use x="1400" y="0" xlink:href="#rgb" />
  391. <use x="2100" y="0" xlink:href="#rgba" />
  392. <use x="2800" y="0" xlink:href="#meta" />
  393. </g>
  394. </g>
  395. </svg>