added example
This commit is contained in:
parent
a6ff67058b
commit
4f3197a012
3 changed files with 25 additions and 11 deletions
10
README.md
10
README.md
|
|
@ -4,3 +4,13 @@
|
|||
* takes two to five arguments: [decimal latitude] [decimal longitude] ([epoch timestamp] [first name] [last name])
|
||||
* If just latitude and longitude are provided, the timestamp is calculated automatically for this moment.
|
||||
* If first- and last name of a person are provided, their birth-location coordinates and birth-time should be the geospatial arguments
|
||||
|
||||
example:
|
||||
|
||||
```
|
||||
sigilize.py 52.4852321 13.4355856 322813800 "Sublunar" "Space"
|
||||
```
|
||||
|
||||
result:
|
||||
|
||||

|
||||
|
|
@ -11,16 +11,20 @@
|
|||
<stop offset="1" stop-color="#453905" stop-opacity="1" />
|
||||
</radialGradient>
|
||||
<marker markerWidth="6.5" markerHeight="5.0" viewBox="-0.8 -0.5 1.3 1.0" orient="auto" id="d2">
|
||||
<circle cx="-0.3" cy="-0.0" r="0.3" stroke-width="0.2" stroke="red" fill="none" />
|
||||
<circle cx="-0.3" cy="-0.0" r="0.3" stroke-width="0.2" stroke="url(#d1)" fill="none" />
|
||||
</marker>
|
||||
<marker markerWidth="5.0" markerHeight="5.0" viewBox="-0.5 -0.5 1.0 1.0" orient="auto" id="d3">
|
||||
<path d="M-0.0,0.5 L0.0,-0.5" stroke-width="0.2" stroke="red" />
|
||||
<path d="M-0.0,0.5 L0.0,-0.5" stroke-width="0.2" stroke="url(#d1)" />
|
||||
</marker>
|
||||
<marker markerWidth="6.5" markerHeight="5.0" viewBox="-0.8 -0.5 1.3 1.0" orient="auto" id="d4">
|
||||
<circle cx="-0.3" cy="-0.0" r="0.3" stroke-width="0.2" stroke="white" fill="none" />
|
||||
<radialGradient cx="0" cy="0" r="260" gradientUnits="userSpaceOnUse" id="d4">
|
||||
<stop offset="0.5" stop-color="white" stop-opacity="0.8" />
|
||||
<stop offset="1" stop-color="grey" stop-opacity="1" />
|
||||
</radialGradient>
|
||||
<marker markerWidth="6.5" markerHeight="5.0" viewBox="-0.8 -0.5 1.3 1.0" orient="auto" id="d5">
|
||||
<circle cx="-0.3" cy="-0.0" r="0.3" stroke-width="0.2" stroke="url(#d4)" fill="none" />
|
||||
</marker>
|
||||
<marker markerWidth="5.0" markerHeight="5.0" viewBox="-0.5 -0.5 1.0 1.0" orient="auto" id="d5">
|
||||
<path d="M-0.0,0.5 L0.0,-0.5" stroke-width="0.2" stroke="white" />
|
||||
<marker markerWidth="5.0" markerHeight="5.0" viewBox="-0.5 -0.5 1.0 1.0" orient="auto" id="d6">
|
||||
<path d="M-0.0,0.5 L0.0,-0.5" stroke-width="0.2" stroke="url(#d4)" />
|
||||
</marker>
|
||||
</defs>
|
||||
<circle cx="0" cy="0" r="260" fill="url(#d0)" stroke-width="0" />
|
||||
|
|
@ -32,6 +36,6 @@
|
|||
<circle cx="0" cy="0" r="230" stroke-dasharray="1003.5643198967396 441.56830075456537" stroke-dashoffset="-936.1477798329598" stroke="url(#d1)" stroke-width="7" fill="none" />
|
||||
<circle cx="0" cy="0" r="240" stroke-dasharray="1047.1975511965977 460.76692252650287" stroke-dashoffset="-955.8976439659806" stroke="url(#d1)" stroke-width="7" fill="none" />
|
||||
<circle cx="0" cy="0" r="250" stroke-dasharray="1090.830782496456 479.96554429844036" stroke-dashoffset="-904.1969047438342" stroke="url(#d1)" stroke-width="7" fill="none" />
|
||||
<path d="M75.08036035436793,124.04813375886901 l-164.82849585058213,-211.05544480198296 l-11.813176272543458,60.35585795310013 l31.069975975389895,74.14852224240119 l41.366550744971704,-105.60685228642365 l46.022716947911604,16.402950390235937" stroke-width="7" stroke="red" fill="none" marker-start="url(#d2)" marker-end="url(#d3)" />
|
||||
<path d="M35,56 l-138,56 l68,-56 l0,-56 l-68,-112 l68,224 l-68,-224 l138,224" stroke-width="7" stroke="white" fill="none" marker-start="url(#d4)" marker-end="url(#d5)" />
|
||||
<path d="M-64.97067433872967,-129.6295162220809 l162.74718808151357,51.752989846624274 l-6.306036634387837,129.4337937347959" stroke-width="7" stroke="url(#d1)" fill="none" marker-start="url(#d2)" marker-end="url(#d3)" />
|
||||
<path d="M-35,56 l-68,56 l206,0 l-206,-56 l0,-168" stroke-width="7" stroke="url(#d4)" fill="none" marker-start="url(#d5)" marker-end="url(#d6)" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.3 KiB |
|
|
@ -173,8 +173,8 @@ def drawSigil(lat, lon, epoch, squareSigilize, radialSigilize, fileName):
|
|||
astroChart(lat, lon, epoch, d, [rusty, rusty, rusty, rusty, rusty, rusty, rusty, rusty])
|
||||
|
||||
# draw sigils
|
||||
radialSigil(radialSigilize, d)
|
||||
magicSquareSigil(squareSigilize, d)
|
||||
radialSigil(radialSigilize, d, rusty)
|
||||
magicSquareSigil(squareSigilize, d, silver)
|
||||
|
||||
# save sigil to SVG file
|
||||
d.saveSvg(fileName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue