Skip to content

Configurable delay between frames in animated GIF #151

@Jaca313

Description

@Jaca313

I'm still learning and i hope it is a simple issue.
I would like to output my animation to a .gif file, but the delay seems to be coded to '20' in Java2dAnimationWriter and the gif is too fast.

Is it possible to change the delay in gif write while using approximately this syntax?
animation.take(10).write[Gif]("example.gif", frame)

If i would like to change it am I supposed to use setDelay with addFrame(BufferedImage) and GifEncoder directly instead?

Thanks for help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions