Git Product home page Git Product logo

calendar-generator's Introduction

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!

Build

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

Known Issues

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.

Feature Backlog

  • 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

Contribute

I am open for external contributions, of course! Fork this repo an open a pull request.

calendar-generator's People

Contributors

dependabot[bot] avatar thek3nger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

calendar-generator's Issues

Use periapsis and apoapsis instead of semi-axis major as input parameter

With periapsis and apoapsis we can more easily obtain semi-axis major (a), minor (b) and eccentricity (e). They are also technically easier to understand for a user (they are simply the shorter and longest distance from the star/planet).

With them, we can compute a as the arithmetic mean, b as the geometric mean and e as the ratio between their difference and sum.

Add seasonal events in the calendar visualization

In the generated example calendar, I want to show seasonal events such as equinoxes and solstices. This is a first step to future "seasonal festivities".

The current calendar implementation may be not sufficient. So, this feature may be blocked by the need of a more refined calendar visualization.

Add moon orbit visualization

Add Moon(s?) orbit visualization. Only the main planet orbit is visualized, I need to add the same visualization for the moon/planet orbit.

Add season visualization in the orbit graph

I want to add a simple cross graph representing the different seasons on the orbit visualizer. This is useful to have an idea of how different the various season duration. Moreover, I can identify equinoxes and solstices on the orbit (in the future, possibly with a "date" attached).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.