The trick I know is to save a series of frames as .png with successive calls to the saveFrame function, then use an imagemagick command to assemble them into an animated gif.
magick *.png myAnimation.gif
saveFrame https://processing.org/reference/saveFrame_.html
imagemagick https://www.imagemagick.org/script/index.php
example gif https://i.imgur.com/SeasHb4.gifv
Best regards,
Antony
-----Original Message-----
From: "Art Simon" <sim...@gmail.com>
Sent: Thursday, November 23, 2017 3:13pm
To: "Unname" <processing...@googlegroups.com>
Subject: [processing-educators] Using Processing to create an animated gif
Happy Thanksgiving everyone!
I was pretty excited to discover that there is a Processing library for creating animated gifs. I wrote a page for my students describing how it works:
[ https://github.com/APCSLowell/AnimatedGIF/blob/master/README.md ]( https://github.com/APCSLowell/AnimatedGIF/blob/master/README.md )
I think my students will enjoy this, and I think I'll use it for showing program output in media like PowerPoint where you couldn't embed a running Processing program.
--
Art Simon
Computer Science InstructorLowell High School, San Francisco
[ http://mrsimon.net ]( http://mrsimon.net/ )
[ http://apcslowell.github.io ]( http://apcslowell.github.io/ )
[ https://apcsprinciples.github.io/ ]( https://apcsprinciples.github.io/ )--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [ processing-educa...@googlegroups.com ]( mailto:processing-educa...@googlegroups.com ).
To post to this group, send email to [ processing...@googlegroups.com ]( mailto:processing...@googlegroups.com ).
Visit this group at [ https://groups.google.com/group/processing-educators ]( https://groups.google.com/group/processing-educators ).
For more options, visit [ https://groups.google.com/d/optout ]( https://groups.google.com/d/optout ).
To unsubscribe from this group and stop receiving emails from it, send an email to [ processing-educators+unsub...@googlegroups.com ]( mailto:processing-educators+unsub...@googlegroups.com ).
To post to this group, send email to [ processing-educators@googlegroups.com ]( mailto:processing-educators@googlegroups.com ).
Visit this group at [ https://groups.google.com/group/processing-educators ]( https://groups.google.com/group/processing-educators ).
For more options, visit [ https://groups.google.com/d/optout ]( https://groups.google.com/d/optout ).
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educators+unsub...@googlegroups.com.
To post to this group, send email to processing-educators@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to [ processing...@googlegroups.com ]( mailto:processing...@googlegroups.com ).
Visit this group at [ https://groups.google.com/group/processing-educators ]( https://groups.google.com/group/processing-educators ).
For more options, visit [ https://groups.google.com/d/optout ]( https://groups.google.com/d/optout ).
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educators+unsub...@googlegroups.com.
To post to this group, send email to processing...@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to [ processing-educators+unsubscrib...@googlegroups.com ]( mailto:processing-educators+unsubs...@googlegroups.com ).
To post to this group, send email to [ processing...@googlegroups.com ]( mailto:processing...@googlegroups.com ).
Visit this group at [ https://groups.google.com/group/processing-educators ]( https://groups.google.com/group/processing-educators ).
For more options, visit [ https://groups.google.com/d/optout ]( https://groups.google.com/d/optout ).
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educators+unsubscrib...@googlegroups.com.
To post to this group, send email to processing...@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educators+unsub...@googlegroups.com.
To post to this group, send email to processing-educators@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.