This is a demo page in which it is possible to procedurally generate a calendar from the orbital parameter of the planet.
Invent a planet, set its mass, the distance from the star, the distance from its moon and generate a calendar that it is astronomically correct!
The calendar generator can be accessed following this link.
If you want, you can build your local version in three simple steps. First, install TypeScript.
npm install -g typescript
Then clone this repository
git clone https://github.com/THeK3nger/calendar-generator.git
Then, build it! Build system is based on Webpack.js.
npm install && npm run build
You will find everything in the dist
folder, ready to be deployed. You can also start a local web-server with:
npm start
Actually, the generator only works in a reasonable way for earth-like planets. You can have fast spinning planet, or planets with very long years, but you will obtain improbable calendars with hundreds of months or months lasting more than a year.
I will address the problem with such exotic planets in the future.
- Lunar Phases
- Seasons
- Astrological Features (zodiac-like)
- Multi-Year Cycles (e.g., like in the Chinese Calendar)
- Possibility to have months different from the "lunar month".
- Multi Start Systems
- Multi Satellite Systems
I am open for external contributions, of course! Fork this repo an open a pull request.