This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-31 13:13:43

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

GIF animation in the Squeak Player

I was thinking of writing a Scratch Patch which added a button on the costumes tab of a Sprite which allowed you to create an animated GIF with the images provided. So I figured out Graphics-Files > GIFReadWriter > animatingGIFWriting > ... probably has what I need. But I didn't get past that. What's a "form"? What do the methods actually do? Help!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2 2012-04-02 08:42:53

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: GIF animation in the Squeak Player

Anybody?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2012-04-02 11:48:22

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: GIF animation in the Squeak Player

dunno, it seems that you have to use setStream:, and then pass a Form object (no idea what they are  hmm ) to nextPutImage:

helps?

edit:
form is

programmer wrote:

A rectangular array of pixels, used for holding images.  All pictures, including character images are Forms.  The depth of a Form is how many bits are used to specify the color at each pixel.  The actual bits are held in a Bitmap, whose internal structure is different at each depth.  Class Color allows you to deal with colors without knowing how they are actually encoded inside a Bitmap.

the class is in graphics-displayobjects  smile

Last edited by roijac (2012-04-02 11:53:11)

Offline

 

Board footer