fortplot_animation Module



Interfaces

public interface FuncAnimation

  • private function FuncAnimation_procedure(animate_func, frames, interval, fig) result(anim)

    Facade constructor: builds the animation_t and registers the save implementation so anim%save(...) works directly (per README).

    Arguments

    Type IntentOptional Attributes Name
    procedure(animate_interface) :: animate_func
    integer, intent(in) :: frames
    integer, intent(in), optional :: interval
    type(figure_t), intent(in), optional, target :: fig

    Return Value type(animation_t)

  • private function FuncAnimation_object(animate_func, frames, interval, fig) result(anim)

    animate_func must be a caller-owned TARGET that outlives anim. Facade constructor: builds the animation_t and registers the save implementation so anim%save(...) works directly (per README).

    Arguments

    Type IntentOptional Attributes Name
    class(animation_callback_t), intent(inout), target :: animate_func
    integer, intent(in) :: frames
    integer, intent(in), optional :: interval
    type(figure_t), intent(in), optional, target :: fig

    Return Value type(animation_t)


Subroutines

public subroutine save_animation(anim, filename, fps, status)

Arguments

Type IntentOptional Attributes Name
type(animation_t), intent(inout) :: anim
character(len=*), intent(in) :: filename
integer, intent(in), optional :: fps
integer, intent(out), optional :: status