[![Actions Status](https://github.com/ccnmtl/astro-simulations/workflows/build-and-test/badge.svg)](https://github.com/ccnmtl/astro-simulations/actions)
Astronomy Simulations and Animations
JavaScript/HTML ports of the Flash originals, found here: [http://astro.unl.edu/animationsLinks.html](http://astro.unl.edu/animationsLinks.html) (source files here: [https://cse.unl.edu/~astrodev/flashdev2/](https://cse.unl.edu/~astrodev/flashdev2/))
* [Small-Angle Approximation Demonstrator](https://ccnmtl.github.io/astro-simulations/small-angle-demo/)
* [Lunar Phase Simulator](https://ccnmtl.github.io/astro-simulations/lunar-phase-simulator/)
* [Motions of the Sun Simulator](https://ccnmtl.github.io/astro-simulations/sun-motion-simulator/)
* [Exoplanet Transit Simulator](https://ccnmtl.github.io/astro-simulations/exoplanet-transit-simulator/)
* [Eclipsing Binary Simulator](https://ccnmtl.github.io/astro-simulations/eclipsing-binary-simulator/)
* [Hydrogen Atom Simulator](https://ccnmtl.github.io/astro-simulations/hydrogen-atom-simulator/)
* [Gas Retention Simulator](https://ccnmtl.github.io/astro-simulations/gas-retention-simulator/)
* [Circumstellar Habitable Zone Simulator](https://ccnmtl.github.io/astro-simulations/circumstellar-habitable-zone-simulator/)
## 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](https://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html)
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
](https://github.com/jindrapetrik/jpexs-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](https://nodejs.org/en/)
* 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](https://github.com/webpack/webpack-dev-server). Three.js
has an overview of this in [How to run things locally](https://threejs.org/docs/#manual/en/introduction/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:
* [How to animate graphical JavaScript programs](https://compiled.ctl.columbia.edu/articles/how-to-animate-graphical-javascript-programs/)
* [How to make an analog clock (Part 1)](https://www.columbia.edu/~njn2118/journal/2018/9/27.html)
* [How to work with Planes in three.js](https://compiled.ctl.columbia.edu/articles/planes-in-threejs/)
* [How to make a draggable dialog box in JavaScript](https://www.columbia.edu/~njn2118/journal/2019/4/26.html)
* [How to Simulate Gas Particles With Matter.js](https://compiled.ctl.columbia.edu/articles/how-to-simulate-gas-particles-with-matterjs/)
There's also the [Conversion Guide](https://ccnmtl.github.io/astro-simulations/docs/conversion-guide.html)
that documents how to put together a new interactive.
### Development links
Here are some links that may be helpful for development.
* [WebGL Setup and Installation](https://webglfundamentals.org/webgl/lessons/webgl-setup-and-installation.html)
* [Three.js Fundamentals](https://threejsfundamentals.org/)
* [Learning Pixi](https://github.com/kittykatattack/learningPixi)
没有合适的资源?快使用搜索试试~ 我知道了~
天文模拟和动画___下载.zip
共286个文件
png:117个
jsx:58个
js:34个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 48 浏览量
2023-04-16
19:42:59
上传
评论
收藏 7.26MB ZIP 举报
温馨提示
天文模拟和动画___下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
天文模拟和动画___下载.zip (286个子文件)
temp_loader.as 5KB
main.css 3KB
buttons.css 2KB
slider.css 1KB
pause-switch.css 956B
shzStars.dat 266KB
.gitignore 77B
.gitignore 33B
.gitkeep 0B
index.html 6KB
index.html 6KB
index.html 6KB
index.html 5KB
index.html 5KB
index.html 4KB
index.html 3KB
index.html 2KB
bundle.js 3.17MB
shzStars.js 2.54MB
bundle.js 2.1MB
bundle.js 1.19MB
bundle.js 1.16MB
bundle.js 785KB
bundle.js 725KB
bundle.js 701KB
bundle.js 452KB
Lightcurve.js 40KB
presets.js 23KB
utils.js 11KB
star-utils.js 11KB
utils.js 6KB
utils.test.js 4KB
utils.js 4KB
presets.js 4KB
utils.js 3KB
utils.js 3KB
WebGL.js 2KB
webpack.config.js 2KB
utils.test.js 2KB
utils.js 1KB
webpack.config.js 1KB
MutedColorsShader.js 1KB
webpack.config.js 1001B
webpack.config.js 983B
webpack.config.js 886B
webpack.config.js 885B
webpack.config.js 885B
webpack.config.js 627B
utils.js 274B
index.js 141B
jest.config.js 50B
package-lock.json 1.01MB
package-lock.json 955KB
package-lock.json 951KB
package-lock.json 951KB
package-lock.json 811KB
package-lock.json 758KB
package-lock.json 753KB
package-lock.json 682KB
helvetiker_bold.typeface.json 60KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 1KB
package.json 1KB
.eslintrc.json 492B
.eslintrc.json 492B
.eslintrc.json 492B
.eslintrc.json 492B
.eslintrc.json 492B
.eslintrc.json 492B
.eslintrc.json 492B
.eslintrc.json 484B
main.jsx 52KB
CelestialSphere.jsx 41KB
main.jsx 29KB
main.jsx 26KB
BinarySystemView.jsx 23KB
timeline.jsx 23KB
CelestialSphere.jsx 22KB
HydrogenAtomSimulator.jsx 17KB
Chamber.jsx 16KB
main.jsx 16KB
main.jsx 16KB
MainView.jsx 16KB
LightcurveView.jsx 14KB
TransitView.jsx 14KB
diagram.jsx 13KB
Clock.jsx 12KB
HRDiagram.jsx 11KB
DatePicker.jsx 8KB
LatitudePicker.jsx 8KB
MoonPhaseView.jsx 7KB
Plot.jsx 7KB
PhotonBeams.jsx 7KB
LightcurveView.jsx 7KB
VisualDemo.jsx 7KB
共 286 条
- 1
- 2
- 3
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- update9-20240601.5.205.slice.img.7z.002
- 微信小程序优惠券页面前端模板源码
- 林子雨编著《Spark编程基础(Python版)》 实验7 Spark机器学习库MLib编程实践数据
- 一种支持微信文本限制长度限制使用的,在合适的位置截取限制字节长度的字符串子串的java算法
- MoonPdfLib中解析PDF的库
- 学习Spring-使用Typora进行整理小白可以自学,有什么问题dd我
- update9-20240601.5.205.slice.img.7z.001.pd
- 2030.5 CSIP通信报文参考
- CSIP test程序解读
- POElight流放之路特效优化
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功