https://github.com/atelierarith/geometryobjects.jl
Demonstrate 2D elastic collision in Julia
https://github.com/atelierarith/geometryobjects.jl
elasticcollision julia plots
Last synced: 22 days ago
JSON representation
Demonstrate 2D elastic collision in Julia
- Host: GitHub
- URL: https://github.com/atelierarith/geometryobjects.jl
- Owner: AtelierArith
- License: mit
- Created: 2021-10-14T06:31:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T03:00:40.000Z (about 2 years ago)
- Last Synced: 2023-03-23T04:21:16.317Z (about 2 years ago)
- Topics: elasticcollision, julia, plots
- Language: Julia
- Homepage:
- Size: 341 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# GeometryObjects.jl
Demonstrate [2D elastic collision](https://en.wikipedia.org/wiki/Elastic_collision) in Julia
# How to use
```console
$ git clone https://github.com/AtelierArith/GeometryObjects.jl.git
$ cd GeometryObjects.jl
$ julia --project=@. -e 'using Pkg; Pkg.instantiate()'
$ julia --project=@. demo/gif/gif.jl
```After that you'll see a gif file `result.gif` is generated.
# Appendix: using Docker
You can execute `demo/gif/gif.jl` out of the box by creating a Docker image from a Dockerfile we prepared. Just try this:
```console
$ make
$ docker-compose run --rm shell julia demo/gif/gif.jl
```# Appendix: Genie.jl
https://github.com/AtelierArith/ElasticCollision.jl demonstrates 2D elastic collision using Genie.jl
# Appendix MiniFB
See [demo/minifb/README.md](https://github.com/AtelierArith/GeometryObjects.jl/tree/main/demo/minifb)