Giter Site home page Giter Site logo

accrete.js's Introduction

ACCRETE.js

Planetary system creation simulation in the browser, or on server.

Accrete.js is a port of the awesome planetary system simulation algorithm, Accrete to JavaScript. Originally published* and partly programmed (via FORTRAN) by the amazing Stephen H. Dole. Almost a decade later Carl Sagan and Richard Isaacson refined Dole's model -- which shortly thereafter was also implemented in FORTRAN, and again elaborately and academically published by Martin Fogg.

The late 80's came and Matt Burdick brought this priceless program to the masses (via Turbo Pascal and C). Since then, many versions of Accrete have popped up around the internet, adding varying degrees of planetary specifics the most notable (and ingenious) being Jim Burrow's implementation StarGen. Ian Burrell's Java port is another great up-to-date example (and a huge help in Accrete.js).

Render

Check out, add to, and keep an eye on the render directory for different visualizations of your generated star system. Currently, there's a basic WebGL rendering that I'm still (slowly) adding to.

Goals

  1. A full build process for Browser/Node scripts and modules.
  2. Implement a good chunk of StarGen's features.
  3. Organize the codebase into a more modern, and JavaScript friendly structure.
  4. Live WebGL view and screenshot options for created systems.
  5. Other cool things to take advantage of this amazing program.

Usage

For now, just use accrete.js, which includes each module concatenated in order. Include that script in any environment and the following will output your basic planet data for a system similar to our own:

var gen 	= new Accrete();
	system 	= gen.distributePlanets();

for(var i = 0; i < system.length; i++) system[i].print();

THANK YOU

Nothing here could have ever (ever, ever, ever) been done without the following amazing, generous, and brilliant people:

  • Stephen H. Dole
  • Carl Sagan
  • Richard Isaacson
  • Martin Fogg
  • Matt Burdick
  • Ian Burrell
  • The many brilliant minds that have contributed their knowlege to, and insights into our awe-inspiring universe.

accrete.js's People

Contributors

tmanderson avatar kennon avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

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.