Zho:GIF动画

🏴󠁧󠁢󠁥󠁮󠁧󠁿

动画GIF 是带有多个帧的GIF文件 可以按顺序播放，制作动画. 动画GIF经常用作配置文件图片和签名.

由于它与其他文件类型不同，它们在互联网上非常流行，但是，它们经常因过度使用，滞后和烦恼而受到批评，尤其是对于华丽的使用者而言.

它们在互联网上很受欢迎，因为它的动画与其他文件类型不同，但经常被批评为过度使用、延迟和烦恼，尤其是华而不实的文件.

如何将动画GIF导入Scratch
下面列出了如何导入动画 GIF的步骤:


 * 1) 下载动画GIF.
 * 2) Click on the import button on the sprite's costumes and select the file.
 * 3) The Costumes Pane should create a new costume for every frame of the animation (This may take a while for large *.gif files).

next costume stamp

Animating the GIF
The following lists steps on how to script an animation to script the animation:
 * A simple way to animate the GIF file in Scratch is to use the following script.

when gf clicked switch costume to [1 v] set [fps v] to [16] forever next costume wait ((1) / (fps)) secs


 * One could just as easily swap out the "fps" (short for frames per second) variable for any arbitrary number. A higher value will increase the speed and the value "0" will cause an error. A typical frame rate for movies is 24 FPS.
 * See this script in action here.

Costumes to Animated GIFs
Just like Scratch can turn animated GIFs into costumes, some people want to be able to turn costumes into animated GIFs. This would be very useful as people would be able to export their Scratch animation to another program. Currently, this is not a feature, but there are external and online tools that support this feature, which requires exporting the costumes (can be time-consuming).

什么是GIF
A GIF, the acronym of a graphic interchange format, is an animating lossless format for image files that supports both animated and static images. There is no limit for how many frames there are in a gif but the longer it is, the bigger it is, and sometimes a bit laggier.