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-axes-in-saltire.go
56 lines (54 loc) · 6.96 KB
/
two-axes-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
49
50
51
52
53
54
55
56
package heraldry
import svg "github.com/ajstarks/svgo"
func renderTwoAxesInSaltireToSvg(canvas *svg.SVG, hexcode string, lineColor string) {
pathData0 := "M118.5,169c-6,9-3.2,18.4,4.3,22.6c-2.4,3-5.9,3-8.9,2.4c-18.2-3.7-28-8.8-34.4-29.2c-1.5-4.9-1.4-10.5,1.8-15.2 c1.2-1.8,2.4-3.1,4.3-0.5c5.3,7,12.5,9,21.4,7.8c-2.4-2.2-3.2-6-7.6-4.9c-0.5,0.1-1.9-0.8-1.9-1.2c0.9-6.1-7.7-5.4-7.8-11.8 c0-4.7-3.6-9.5-5.6-14.2c-0.5-1.1-1.8-2.4-0.5-3.5c1-0.8,2.5-0.7,3.7,0.3c4.8,3.8,10.3,6.5,15.9,8.9c2.1,0.9,2,3.3,2.7,5 c0.8,2,0.7,4.4,3.8,4.7c1.2,0.1,1.5,1.5,1.5,2.8c0,4.5,0,4.5,3.5,7.8c4.2-4,7.6-8.4,7.4-14.6c-0.1-3.3,1.8-3,3.3-1.3 c3,3.5,6.5,3.8,10.8,3.2c4.5-0.6,6.2,2.7,3.5,6.5c-1.1,1.7-1.8,2.4-0.3,4.5c1.5,2,2.1,5.1-2.7,5c-2.2-0.1-4.3,1.4-6,2.8 c-4.6,3.6-4.7,5.6-0.6,9.6c4.7,4.7,9.4,9.4,14.4,14.4c5.7-6,10.3-12.7,14.7-19.5c1-1.6,0.8-2.5-0.5-3.2c-3.4-1.8-6.1-5.4-10.8-3.4 c-1,0.4-3.1,0.8-3.6-0.5c-0.5-1.3-0.7-3.1,0.5-4.7c1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2,12.8-13.5,18.3-21.1c0.9-1.3,1.4-2.4,1.4-4c0.1-3.7,0.1-3.8,4.2-4.3c1.7-0.2,1.6-1.8,2.4-2.8 c8.2-10.6,8.2-10.6-1.3-20.1C125.8,176.3,122.3,172.7,118.5,169z"
pathData1 := "M169.1,163.6c0.4-0.5,1-0.9,1.3-1.5c3.3-6.3,7.3-8.3,14.9-5.5c5.8,2.1,11.9-2,16.7-5.8 c2.4-1.9,3.1-0.7,3.8,0.8c4.3,10.1-0.4,23.5-9,30.6c-5.5,4.5-11.4,6.4-17.9,7.7c-1.4,0.3-3.1,0.3-4.4-0.1c-2-0.6-3.6-1.3-1.2-3.8 C179.7,179.5,177.9,169.9,169.1,163.6z"
pathData2 := "M116.2,190.7c-11.4,1-24-6.3-29.3-16.1c-3.1-5.7-5.6-11.3-4.9-18c0.2-1.7,0.5-3.5,1.7-4.3 c1.3-0.8,2.1,1.1,3.1,1.9c5.7,4.8,12.5,5.8,19.4,4.6c5.4-0.9,6,4,9,5.9c2.4,1.5-0.2,3-0.7,4.5 C111.7,176.5,110.5,181.7,116.2,190.7z"
pathData3 := "M146.2,152.7c1.6-5.1,2.9-6.3,6.5-6c-0.3-1-1.1-1.3-1.9-1.8c-2.1-1.3-4.6-3.4-3.2-5.6 c1.5-2.5,4.5-1.4,7.1-0.4c1.6,0.6,2.4,2.2,4.2,3.1c0.1-1,0-1.6,0.1-2.1c0.2-2-1-5.2,1.7-5.6c2.5-0.3,0.8,2.8,1.4,4.3 c1,2.1,2.6,3.8,4.3,5.3c2.5,2.3,4.7,4.4,0.8,7.7c-1.9,1.6-2.7,5.1-4.7,5.9c-2.2,0.9-4.2-2.2-6.4-3.5 C152.1,151.7,151.5,151.6,146.2,152.7z"
pathData4 := "M140.5,187.6c-13.3-11.8-23.5-24.7-35.3-36c-0.7-0.7-2.2-1.9-0.3-2.5c1.2-0.4,1.7-3.2,3.9-1 c10.7,10.9,21.6,21.7,32.4,32.5C143.6,183.2,140.3,184.6,140.5,187.6z"
pathData5 := "M124.7,161.1c-0.7-0.7-1.2-1.1-1.7-1.6c-6.4-6.3-6.4-6.3-1.7-13.3c2-3,2.6-4.7,3-9.1c0.6,0.5,1.4,0.9,1.5,1.4 c0.7,3.8,2.8,3.8,5.8,2.6c2.1-0.9,5.2-2.7,6.1,0.8c0.8,2.8-1.7,4.7-4.6,5.8c1.8,0.6,4,0.5,3.8,3.1c-0.2,2.5-2.4,0.9-3.5,1.5 C129.8,154.1,127,157,124.7,161.1z"
pathData6 := "M132.5,207.9c-0.5-0.5-1.2-1.2-1.9-1.8c-1-1-0.4-1.6,0.3-2.5c8.7-11.3,17.3-22.7,26.1-33.9 c0.6-0.8,0.4-3.7,2.8-2.2c2.2,1.3,1.1,3.2,0.2,4.7c-2.6,3.9-5.3,7.7-8.1,11.5c-5.8,7.6-11.7,15.2-17.5,22.8 C133.8,206.9,134.1,208.1,132.5,207.9z"
pathData7 := "M188.9,131.7c-2.7,3.1-5.4,6.2-8.4,9.6c-0.7-7.4,5.7-14.4,15-17.5c3.6,9.9-3.4,14-10.1,18.4 c-0.9,0.6-1.5,1.2-2.5,0.2c-1.6-1.5,0.3-1.9,0.8-2.6c2-2.5,4.9-4.2,6.4-7.1C189.7,132.4,189.3,132,188.9,131.7z"
pathData8 := "M86.8,124.2c3.6,2.1,6.7,4.3,10,5.7c3.6,1.6,5.6,3.9,6.4,7.7c0.5,2.6,2,4.8-1.6,6.4c-3.9,1.7-6.6,0.2-8.1-3.1 C91.1,135.6,89.2,130.1,86.8,124.2z"
pathData9 := "M165,215.9c3.1-4.6,5.4-3.5,8.4-0.1c3.6,4.1,7.8,7.8,11.7,11.6c-3,3.5-5.4,3.6-8.4,0 C173.1,223.1,168.8,219.6,165,215.9z"
pathData10 := "M130.8,214.1c-3.9,2.2-5.3,6.1-7.8,9c-1.5,1.7-3.1,3.4-4.7,5.1c-1.4,1.4-3,1.4-4.4,0.2 c-1.4-1.2-1.5-3-0.3-4.4c3.6-4,7.5-7.8,11.1-11.9C126.7,209.8,128.5,213.9,130.8,214.1z"
pathData11 := "M165.3,164.9c-1-1.5-4.6-0.7-2-3.8c3.6-4.5,6.9-9.4,10.2-14.1c1.4-2,2.7-0.4,3.8,0.1c1.4,0.6,0.5,1.5-0.2,2.3 c-3.6,4.6-7.2,9.2-10.8,13.8C166,163.7,165.7,164.3,165.3,164.9z"
pathData12 := "M151.9,192.9c4,5.7,11.4,8,8.4,16.9c-3.7-3.7-7.5-6.9-10.5-10.7C148.3,197.2,152.7,196.5,151.9,192.9z"
pathData13 := "M165.2,202.1c3,4.9,1.8,8.1-1.2,10.1c-2.7,1.8-5.9,1.6-8.2-2.6C162.4,211.8,164.6,208.4,165.2,202.1z"
pathData14 := "M195,236.9c-0.7,1.5-1.5,3.2-4,3.1c-1.9-0.1-4.7-1-4.4-2.5c0.4-1.9,2.4-4.2,4.8-4.2 C192.6,233.3,195,234,195,236.9z"
pathData15 := "M190,229.6c0,1.7-6,6.8-7.2,6.3c-1-0.4-2.1-1.4-2.4-2.3c-0.3-0.8,1-1.2,1.9-1.7c1.6-0.8,3.2-1.5,4.4-2.9 c0.4-0.4-0.3-2.7,1.5-1.2C188.9,228.3,189.5,229.1,190,229.6z"
pathData16 := "M108.6,240c-2.4,0.2-3.6-0.6-3.7-3.3c-0.1-2.2,1-3.3,2.4-4.5c1.1,2.4,3.9,3.3,5.1,5.3 C113,238.3,110.7,240.2,108.6,240z"
pathData17 := "M138.1,210.7c-8,2.5-12.1,0.2-11.9-7.4C129.3,208.1,133,210.6,138.1,210.7z"
pathData18 := "M109.1,227.6c2.1,1.3,3.8,2.3,5.4,3.3c0.8,0.5,2.5-0.4,2.5,1.6c0,1.2-0.5,2-1.5,2.4c-1.2,0.4-2.5,0.6-3.7-0.4 C109.9,232.7,109.4,230.5,109.1,227.6z"
pathData19 := "M109.3,141.9c-1.8,4.6-5.3,6.1-8.7,7.9c-0.7,0.4-1.4,0.2-1.5-0.5c-0.1-0.6-0.1-1.7,0.2-1.8 C102.5,145.8,104.9,142.8,109.3,141.9z"
pathData20 := "M183.3,145.5c-3.1,1.1-5.3,0.4-7.4-1.1c-0.7-0.5-2.3-0.3-1.8-1.7c0.4-1.1,1.5-2.2,2.7-1.6 C179,142.1,181.8,142.5,183.3,145.5z"
pathData21 := "M163.9,166.4c-0.5,0.5-0.8,1.6-1.6,1.2c-0.9-0.4-2-1.1-2-2.3c0-0.3,0.9-0.6,1.4-1 C162.2,165.3,164.3,164.5,163.9,166.4z"
pathData22 := "M90.2,128.3c3.7,3.9,7.4,7.8,10.7,11.2C97.9,139.5,91.9,133.6,90.2,128.3z"
canvas.Translate(-90, -160)
canvas.Scale(1.75)
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:"+hexcode)
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:"+hexcode)
canvas.Path(pathData19, "fill:"+hexcode)
canvas.Path(pathData20, "fill:"+hexcode)
canvas.Path(pathData21, "fill:"+hexcode)
canvas.Path(pathData22, "fill:"+lineColor)
canvas.Gend()
canvas.Gend()
}