Using Processing to create an animated gif

28 views
Skip to first unread message

Art Simon

unread,
Nov 23, 2017, 10:13:48 AM11/23/17
to Unname
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:

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 Instructor
Lowell High School, San Francisco

a...@akb.me.uk

unread,
Nov 23, 2017, 10:33:43 AM11/23/17
to processing...@googlegroups.com
Is that a private repository? I'm getting a 404 (this is not the web page you are looking for)

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 ).

Art Simon

unread,
Nov 23, 2017, 10:41:06 AM11/23/17
to Unname
Hi Antony,

Yup it _was_ private. I just changed it to public. Sorry about that.

 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 ).

--

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.



--

Alexandre Villares

unread,
Dec 4, 2017, 1:11:04 PM12/4/17
to Processing Educators
Thank you Simon!

A friend ported an example to Processing Python Mode, in case someone is interested...

(It's in Portuguese, but I guess the code is mostly readable).

Cheers,
Alexandre

---
 To post to this group, send email to [ processing...@googlegroups.com ]( mailto:processing...@googlegroups.com ).

--
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.



--

Art Simon

unread,
Dec 4, 2017, 1:35:10 PM12/4/17
to Unname
Cool, thanks Antony! I'm teaching Python mode next semester, so it's nice to know that's an option.

 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 ).

--
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.



--
Reply all
Reply to author
Forward
0 new messages