-
Notifications
You must be signed in to change notification settings - Fork 0
A library of ancient and medieval astronomic model animations.
License
buermann/keplerator
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The simple HTML5 canvas animation library for building out the models is all in app/assets/javascripts/. The minimum required to set up a new model of the universe is the following:
<script>
window.onload = function(){
var universe = new Universe({ sun:{}, earth:{type:'center'} });
universe.setup();
}
</script>
All the planets as well as Pluto are built in with modern values for their default parameters.
Any given planet can be added manually, with these parameters defined at a minimum:
<script>
universe.planets.xanax = new Planet(universe, {
name:'xanax', color: "#CC0", aus: 30, mm: .2, size: 70000
});
</script>
Parameters can be passed as sexagesimal (base 60) straight from the literature.
Deferents are calculated as epicycles: if no epicycles are defined a basic deferent from
the AUs (aus:) and mean movement (mm:) properties will be added. Here's a more complex
model:
<script>
universe.planets.mercury.eccentric(6).cycles([
{mm:-mm,radius:3},
{mm:mm,radius:18,equant:3},
{mm:universe.planets.mercury.mm-mm,radius:6},
]);
</script>
Note one can apply an arbitrary, static equant to any given cycle in this fashion.
About
A library of ancient and medieval astronomic model animations.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published