Giter VIP home page Giter VIP logo

astro-simulations's Introduction

Actions Status

Astronomy Simulations and Animations

JavaScript/HTML ports of the Flash originals, found here: http://astro.unl.edu/animationsLinks.html (source files here: https://cse.unl.edu/~astrodev/flashdev2/)

Development guide

The original simulations are written in ActionScript 2.0. To open the .fla files, you'll need an older version of Adobe Animate than the current version (19.1). You can download a trial version of Adobe Flash Professional CS4 here and open the .fla files with this. Also, Flash Professional CS6 can also open these files. Adobe doesn't distribute Flash Professional anymore. The only way I've found to read the source files is by opening the .swf files in JPEXS Free Flash Decompiler .

To get to the code, go to Window -> Actions. The bottom-left panel should have the code hierarchy.

Here are instructions on how to develop and make changes to these simulations. If you're using Windows, replace the forward slashes with back-slashes.

  • Install node.js
  • Clone this repository
  • Go into one of the simulations, e.g.: cd astro-simulations/lunar-phase-simulator
  • Run npm install
  • Run npm run serve
  • Wait for the build to complete. It takes a while.
  • Open http://localhost:8080 in your web browser.

You can also use the npm run dev command if all you want to do is make a development build of a simulation without using webpack-dev-server. Three.js has an overview of this in How to run things locally. Both npm run dev and npm run serve watch the src/ directory for file changes.

Here are some blog posts I've made about these simulations:

There's also the Conversion Guide that documents how to put together a new interactive.

Development links

Here are some links that may be helpful for development.

astro-simulations's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar ndittren avatar nikolas avatar sdreher avatar nbuonin avatar greenkeeper[bot] avatar evan-ctl avatar legau avatar zmustapha avatar astrophysically 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.