This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtwo-bones-in-saltire.go
48 lines (46 loc) · 6.98 KB
/
two-bones-in-saltire.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package heraldry
import svg "github.com/ajstarks/svgo"
func renderTwoBonesInSaltireToSvg(canvas *svg.SVG, hexcode string, lineColor string) {
pathData0 := "M199.8,108.3c0.4-4.9-0.2-8.2,1.1-11.7c2.8-7.8,10.2-10.1,17.4-6.1c5.5,3.1,8.5,6.6,7.8,13.1c-0.3,2.9,1.3,5.2,4.3,6.4 c3.2,1.3,5.9,1.2,8.4-1.3c4.6-4.6,7.8-5.2,12.3-2.7c2.8,1.6,4.8,8.7,3.5,12.9c-3.1,10-11.4,14.2-20.4,17 c-7.5,2.4-15.2,4.1-22.7,6.3c-4.4,1.3-7.9,4.6-11.3,7.4c-12.4,10-22.9,22-33.6,33.8c-4.6,5.1-1.6,7.8,1.2,10.9 c8.6,9.7,17.2,19.4,26.2,28.6c6.5,6.6,12.7,14.2,23.4,14.3c2.9,0,5.8,0.7,8.7,0.8c8,0.3,16.7,11.7,11.3,20.2 c-1.7,2.7-3.6,4.3-6.8,4.8c-5.6,1.1-11.3,1.8-14,8.4c-1.4,3.4-5.9,3.8-8.5,6.3c-1.1,1-2.9-0.2-4.3-1.3c-6.1-4.4-7.6-11.1-8.8-17.8 c-1.6-8.7-7.3-15-12.6-21.4c-6.6-8.1-14.1-15.4-20.6-23.6c-2.8-3.5-6.3-6.4-9.4-9.7c-1.7-1.8-2.5-0.5-3.6,0.5 c-4.2,4-7.1,9.2-11,13.5c-7.2,8-14.1,16.2-20.3,25c-4.3,6.2-6.9,13.3-7.7,21c-0.7,6.7-9.2,13.6-16,13c-2.8-0.2-4.6-1.7-4.9-4.4 c-0.5-4.4-3-5.8-7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4-2.7c1.2-0.8,2.5-0.1,4.2,0c-1.4-0.5-2.4-1-2.9-1.9C203.6,259.3,203.8,262.8,203,262.9z"
pathData4 := "M126.9,223.4c-8.9,12.6-20.1,23.9-22.5,40.1C103.1,245.3,116.5,235.2,126.9,223.4z"
pathData5 := "M227.8,260.4c5.5-8,5.5-8,1.5-17c4.2,1.4,6.3,4.2,5.6,8.5C234.3,255.4,233.2,259.2,227.8,260.4z"
pathData6 := "M147.2,200.2c-4,7.3-10.4,12.5-15.8,18.6c3.8-7.4,8.8-13.9,15.9-18.4L147.2,200.2z"
pathData7 := "M80.3,103.4c1.6-8.7,3.7-10.8,10.1-9.5C84.5,94.3,85.2,101.4,80.3,103.4z"
pathData8 := "M224.1,115.1c-0.9-3-5.5-4.1-4.1-8.4c0.3-1,0.5-1.8,1.7-2.6c0.3,4.9,3.3,7.9,9,10.1c-3.3,0.3-5,0.5-6.7,0.7 C223.9,114.9,224.1,115.1,224.1,115.1z"
pathData9 := "M203,262.9c0-1.5,0-2.9,0-5.5c2.4,3.4,4.4,5.9,7.7,7c-2.3,0.5-4.5,1.1-6.6-0.4C203.7,263.7,203.3,263.3,203,262.9z"
pathData10 := "M147.3,200.3c-0.8-2.8,1.4-4.7,2.9-5.6c2.3-1.5,3.5-3.7,5.5-5.3c-0.9,5.1-5.5,7.3-8.6,10.8 C147.2,200.2,147.3,200.3,147.3,200.3z"
pathData11 := "M215.9,95.5c-1.3,1.3-2-0.6-3-0.5c-1.3,0.1-2.7,0.2-3.5-1.2c-0.5-0.8,0.4-1.3,0.8-1.4 c1.6-0.6,3.2-0.8,4.4,0.7C215.2,93.8,216.2,94.3,215.9,95.5z"
pathData12 := "M164.9,178.9c-0.7,4.4-5.5,5.4-7.1,9.1c1.8-3.5,3.3-7.3,7.2-9L164.9,178.9z"
pathData13 := "M205.6,272.4c-3-1.9-4.9-3.9-5.3-7.1C202.1,267.5,205.2,268.5,205.6,272.4z"
pathData14 := "M83.3,262.6c3.7-1.3,5.2-0.1,6.5,2.1C87.2,265.5,85.9,263.7,83.3,262.6z"
pathData15 := "M135.6,179.8c-1.5-1.4-3-2.8-5.3-4.9C134,175.4,134.7,177.6,135.6,179.8z"
pathData16 := "M165.1,179.1c-0.1-2.3,0.8-3.4,3.2-2.8l-0.1-0.1c-0.3,1.9-1.1,3.1-3.2,2.8 C164.9,178.9,165.1,179.1,165.1,179.1z"
pathData17 := "M168.3,176.3c-0.9-2.2,0.7-2.6,1.6-3.5c0.4,0.3,0.8,0.6,1.2,0.9c-1,0.8-2,1.6-3,2.4 C168.2,176.2,168.3,176.3,168.3,176.3z"
pathData18 := "M101.9,243.6c-2.3,2.5-3.9,5-4.2,8.4c-0.9-2.6-2.3-4.2-5.4-4.6C95.3,244.3,99.2,245.5,101.9,243.6z"
pathData19 := "M216,259.2c-2.4,2.6-4.7,2-8.3,0.8C211.1,258.6,213.4,259,216,259.2z"
canvas.Translate(10, -10)
canvas.Path(pathData0, "fill:"+lineColor)
canvas.Path(pathData1, "fill:"+hexcode)
canvas.Path(pathData2, "fill:"+hexcode)
canvas.Path(pathData3, "fill:"+hexcode)
canvas.Path(pathData4, "fill:"+hexcode)
canvas.Path(pathData5, "fill:"+hexcode)
canvas.Path(pathData6, "fill:"+hexcode)
canvas.Path(pathData7, "fill:"+hexcode)
canvas.Path(pathData8, "fill:"+hexcode)
canvas.Path(pathData9, "fill:"+lineColor)
canvas.Path(pathData10, "fill:"+hexcode)
canvas.Path(pathData11, "fill:"+hexcode)
canvas.Path(pathData12, "fill:"+hexcode)
canvas.Path(pathData13, "fill:"+hexcode)
canvas.Path(pathData14, "fill:"+hexcode)
canvas.Path(pathData15, "fill:"+hexcode)
canvas.Path(pathData16, "fill:"+hexcode)
canvas.Path(pathData17, "fill:"+hexcode)
canvas.Path(pathData18, "fill:"+lineColor)
canvas.Path(pathData19, "fill:"+lineColor)
canvas.Gend()
}