diff --git a/src/assets/post/hygsvg/full-en.html b/src/assets/post/hygsvg/full-en.html new file mode 100644 index 0000000..0e6e8cb --- /dev/null +++ b/src/assets/post/hygsvg/full-en.html @@ -0,0 +1,20 @@ +

+ File this under "I want this but I don't want to pay for it... I'll do it myself then!". 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: https://github.com/astronexus/HYG-Database +

+ +

+ 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: http://jknight8.tripod.com/CelestialToAzEl.html. + I implemented this, quick and dirty, in a Kotlin project (check out this + github repository 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. +

+ +

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.

diff --git a/src/assets/post/hygsvg/full-nl.html b/src/assets/post/hygsvg/full-nl.html new file mode 100644 index 0000000..3a2edda --- /dev/null +++ b/src/assets/post/hygsvg/full-nl.html @@ -0,0 +1,24 @@ +

+ Dit mag je klasseren onder "Ik wil dit, maar ik wil er niet voor betalen... Dan maar zelf doen!". 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): https://github.com/astronexus/HYG-Database. +

+ +

+ 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: + http://jknight8.tripod.com/CelestialToAzEl.html. + Ik heb dit, hopelijk correct genoeg, geimplementeerd in Kotlin (check deze + github repository 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). +

+ +

+ 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. +

+ diff --git a/src/assets/post/hygsvg/info.json b/src/assets/post/hygsvg/info.json new file mode 100644 index 0000000..6b7ff65 --- /dev/null +++ b/src/assets/post/hygsvg/info.json @@ -0,0 +1,13 @@ +{ + "languages": [ + "en", + "nl" + ], + "tags": [ + "tech" + ], + "title": { + "en": "An SVG firmament!", + "nl": "Een SVG firmament!" + } +}