Added hygsvg post
This commit is contained in:
parent
31d3b7599d
commit
9769012415
20
src/assets/post/hygsvg/full-en.html
Normal file
20
src/assets/post/hygsvg/full-en.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<p>
|
||||||
|
File this under <em>"I want this but I don't want to pay for it... I'll do it myself then!"</em>. There are a couple
|
||||||
|
of online services that offer the creation of a poster that contains the night's sky at a certain point in time and
|
||||||
|
space, but they all want to be paid handsomely. So, do it ourselves then. A quick search for input time resulted in
|
||||||
|
the following database: <a target="_blank" href="https://github.com/astronexus/HYG-Database">https://github.com/astronexus/HYG-Database</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
After a failed attempt at trying to understand the basics of astronomy I found a concise explanation of how you can
|
||||||
|
calculate the visible night sky for a specific observer: <a target="_blank"
|
||||||
|
href="http://jknight8.tripod.com/CelestialToAzEl.html#the%20source%20code">http://jknight8.tripod.com/CelestialToAzEl.html</a>.
|
||||||
|
I implemented this, quick and dirty, in a Kotlin project (check out <a target="_blank"
|
||||||
|
href="https://github.com/CountZukula/hygsvg">this
|
||||||
|
github repository</a> if you want to try it out. The code outputs the following vector images, which I'm pretty
|
||||||
|
pleased with! They can easily be included in whatever vector image program (Inkscape!) you want to use, which means
|
||||||
|
you can produce posters of whichever size you desire.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>Most parameters can be easily modified (size of the stars, colors, ...), either by changing some variables or
|
||||||
|
modifying the code (which should be relatively easy.</p>
|
||||||
24
src/assets/post/hygsvg/full-nl.html
Normal file
24
src/assets/post/hygsvg/full-nl.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<p>
|
||||||
|
Dit mag je klasseren onder <em>"Ik wil dit, maar ik wil er niet voor betalen... Dan maar zelf doen!"</em>. Er zijn een
|
||||||
|
paar betaalde services online die het mogelijk maken om een poster te maken van de sterrenhemel, uitgaande van een
|
||||||
|
bepaalde locatie op de aarde, op een bepaald moment in de tijd. Om zelf zoiets te maken moet je natuurlijk beginnen
|
||||||
|
met een leesbare dataset, en na een snelle zoektocht kwam ik uit op de volgende databank (vrij beschikbaar): <a
|
||||||
|
target="_blank" href="https://github.com/astronexus/HYG-Database">https://github.com/astronexus/HYG-Database</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Na een mislukte poging om de basics van astronomie te begrijpen vond ik een beknopte uitleg die uit de doeken deed hoe
|
||||||
|
je de positie van sterren in het zichtbare stuk van de hemel moet berekenen:
|
||||||
|
<a target="_blank" href="http://jknight8.tripod.com/CelestialToAzEl.html#the%20source%20code">http://jknight8.tripod.com/CelestialToAzEl.html</a>.
|
||||||
|
Ik heb dit, hopelijk correct genoeg, geimplementeerd in Kotlin (check <a target="_blank"
|
||||||
|
href="https://github.com/CountZukula/hygsvg">deze
|
||||||
|
github repository</a> als je het zelf wil uitproberen). De code maakt een vector afbeelding die je later kan verwerken
|
||||||
|
in, bijvoorbeeld, een poster, met gelijk welke software die kan omgaan met een SVG afbeelding (en in gelijk welk
|
||||||
|
formaat, aangezien het een vector afbeelding is).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
De meeste parameters kan je gemakkelijk aanpassen, zoals de grootte en kleuren van de sterren, ofwel door een
|
||||||
|
variabele aan te passen of even in de code te duiken.
|
||||||
|
</p>
|
||||||
|
|
||||||
13
src/assets/post/hygsvg/info.json
Normal file
13
src/assets/post/hygsvg/info.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"languages": [
|
||||||
|
"en",
|
||||||
|
"nl"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"tech"
|
||||||
|
],
|
||||||
|
"title": {
|
||||||
|
"en": "An SVG firmament!",
|
||||||
|
"nl": "Een SVG firmament!"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user