Skip to content

How to create gif animation? #36

Closed
@HarukiUchito

Description

@HarukiUchito

Hello, I'm trying to create gif animation by the code like following.
But only last frame was recorded in "movie.gif".
Is this the wrong usage of functions or the limitation of the current package?

let mut fg = Figure::new();
fg.set_terminal("gif animate optimize delay 2 size 480,360", "movie.gif");
for _ in 0..10 {
    fg.clear_axes();
    // calculate x, y
    fg.axes2d().lines_points(&x,&y);
    fg.show();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions