astronomy-svg is a lightweight tool to generate astronomy-themed Scalable Vector Graphics (SVG) images easily. Perfect for web developers, educators, astronomers, and space enthusiasts who want beautiful, customizable visuals of space elements without needing to design from scratch.
These tiles were generated using the astronomy-svg library.
👉 Check out the live demo here
<script type="text/javascript" src="astronomy-svg.min.js"></script>
// latitude, longitude
let astronomySVG = AstronomySVG.initialize(56.2, 18.1)
// 100px, isRectangular=false.
astronomySVG.drawSunAltitudePath(100, false);
npm install astronomy-svg
import { AstronomySVG } from "astronomy-svg";
// latitude, longitude
let astronomySVG = AstronomySVG.initialize(56.2, 18.1)
// 100px, isRectangular=false.
astronomySVG.drawSunAltitudePath(100, false);
This project is licensed under the MIT License — feel free to use, modify, and share it.
Please make sure to retain the original license and attribution when reusing or modifying the code.
See the LICENSE file for full details.