1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-09-17 18:51:17 +00:00

Use abstract types

This commit is contained in:
Mo 2022-09-25 23:40:37 +02:00
parent 615cccb46c
commit f3147b0729

View file

@ -172,8 +172,8 @@ The output is `sim_dir/animation.mkv`.
Return `nothing`. Return `nothing`.
# Arguments # Arguments
- `sim_dir::String`: Simulation directory. - `sim_dir::AbstractString`: Simulation directory.
- `framerate::Int64=$DEFAULT_FRAMERATE`: Framerate - `framerate::Integer=$DEFAULT_FRAMERATE`: Framerate
- `show_center_of_mass::Bool=$DEFAULT_SHOW_CENTER_OF_MASS`: Show the center of mass as transparent white circle. - `show_center_of_mass::Bool=$DEFAULT_SHOW_CENTER_OF_MASS`: Show the center of mass as transparent white circle.
- `show_interaction_circle::Bool=$DEFAULT_SHOW_INTERACTION_CIRCLE`: Show the interaction radius with a circle around every particle. - `show_interaction_circle::Bool=$DEFAULT_SHOW_INTERACTION_CIRCLE`: Show the interaction radius with a circle around every particle.
- `show_skin_circle::Bool=$DEFAULT_SHOW_SKIN_CIRCLE`: Show the skin radius with a circle around every particle. - `show_skin_circle::Bool=$DEFAULT_SHOW_SKIN_CIRCLE`: Show the skin radius with a circle around every particle.
@ -181,8 +181,8 @@ Return `nothing`.
- `show_progress::Bool=$DEFAULT_SHOW_PROGRESS`: Show animation progress bar. - `show_progress::Bool=$DEFAULT_SHOW_PROGRESS`: Show animation progress bar.
""" """
function animate( function animate(
sim_dir::String; sim_dir::AbstractString;
framerate::Int64=DEFAULT_FRAMERATE, framerate::Integer=DEFAULT_FRAMERATE,
show_center_of_mass::Bool=DEFAULT_SHOW_CENTER_OF_MASS, show_center_of_mass::Bool=DEFAULT_SHOW_CENTER_OF_MASS,
show_interaction_circle::Bool=DEFAULT_SHOW_INTERACTION_CIRCLE, show_interaction_circle::Bool=DEFAULT_SHOW_INTERACTION_CIRCLE,
show_skin_circle::Bool=DEFAULT_SHOW_SKIN_CIRCLE, show_skin_circle::Bool=DEFAULT_SHOW_SKIN_CIRCLE,