Skip to content

RomeoV/ParticleLife.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParticleLife.jl

Reimplementation of particle-life in Julia, using Agents.jl and Makie.jl. The entire code, including visualization, is <200 lines.

The code uses pretty straight-forward multi-threading for the velocity updates, and achieves >200fps for moderate number of particles (800 particles somewhat densely packed), including drawing, and about 30-40fps for 3000 particles.

video.mp4

The tool allows for interaction with the rules on the fly.

demo screenshot

Usage

To use, install this package and also a Makie Backend -- presumably GLMakie. Then run run_sim():

$ git clone https://github.com/RomeoV/ParticleLife.jl
$ cd ParticleLife.jl
$ julia --project=.
julia> ]instantiate
julia> ]add GLMakie
julia> using ParticleLife, GLMakie
julia> run_sim()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages