Giter Site home page Giter Site logo

--galaxy's Introduction

太极图形课S1-ODOP示例程序-Galaxy

背景简介

本文实现了一个简单的星系系统(Galaxy),其中包含基类星体(CelestialObject),和两个子类恒星(Star)和行星(Planets)。为了简化计算,行星对恒星的引力被忽略不计。

成功效果展示

fractal demo

整体结构(Optional)

├── data
│   └── galaxy.gif
├── images
├── .gitignore
├── README.md
├── LICENSE
├── celestial_objects.py
├── galaxy.py
└── requirements.txt

运行方式

运行环境:

[Taichi] version 0.8.0, llvm 10.0.0, commit 181c9039, win, python 3.8.10

确保celestial_objects.pygalaxy.py 在相同的路径下,直接运行: python3 galaxy.py

按键

  • Space : 暂停/继续
  • i : 运行时导出图片/停止导出(导出的图片会存放在./images/目录下)
  • r : 重置

--galaxy's People

Contributors

ltt1598 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

taichicourse01

--galaxy's Issues

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.