Many such apps enable you to control the speed of GIFs and add texts with various colors, styles, and fonts.įollowing is a handpicked list of Top GIF Maker, with their popular features and GIF maker download links. There are many GIF makers that help you to instantly create an animated image.
The full form of GIF is Graphics Interchange Format.
GIF is a series of images or soundless video that can loop constantly without pressing the play button. blit ( background, ( 0, 0 )) allsprites. tick ( 60 ) # Handle Input Events for event in pg. Clock () # Main Loop going = True while going : clock. RenderPlain (( fist, chimp )) clock = pg. flip () # Prepare Game Objects whiff_sound = load_sound ( "whiff.wav" ) punch_sound = load_sound ( "punch.wav" ) chimp = Chimp () fist = Fist () allsprites = pg. blit ( text, textpos ) # Display The Background screen. render ( "Pummel The Chimp, And Win $$$", True, ( 10, 10, 10 )) textpos = text. fill (( 170, 238, 187 )) # Put Text On The Background, Centered if pg. set_visible ( False ) # Create The Backgound background = pg. it initializes everything it needs, then runs in a loop until the function returns.""" # Initialize Everything pg. image def main (): """this function is called when the program starts. get_rect ( center = center ) def punched ( self ): """this will cause the monkey to start spinning""" if not self.
rect = newpos def _spin ( self ): """spin the monkey image""" center = self. _walk () def _walk ( self ): """move the monkey across the screen, and turn at the ends""" newpos = self.
dizzy = False def update ( self ): """walk or spin, depending on the monkeys state""" if self. rect = load_image ( "chimp.png", - 1, 4 ) screen = pg. _init_ ( self ) # call Sprite intializer self. it can spin the monkey when it is punched.""" def _init_ ( self ): pg. Sprite ): """moves a monkey critter across the screen. rect ) def unpunch ( self ): """called to pull the fist back""" self. move_ip ( 15, 25 ) def punch ( self, target ): """returns true if the fist collides with the target""" if not self. punching = False def update ( self ): """move the fist based on the mouse position""" pos = pg.
rect = load_image ( "fist.png", - 1 ) self. _init_ ( self ) # call Sprite initializer self. Sprite ): """moves a clenched fist on the screen, following the mouse""" def _init_ ( self ): pg. Sound ( fullname ) return sound # classes for our game objects class Fist ( pg. get_init (): return NoneSound () fullname = os. get_rect () def load_sound ( name ): class NoneSound : def play ( self ): pass if not pg. scale ( image, size ) if colorkey is not None : if colorkey = - 1 : colorkey = image. get_size () size = ( size * scale, size * scale ) image = pg. join ( main_dir, "data" ) # functions to create our resources def load_image ( name, colorkey = None, scale = 1 ): fullname = os. mixer : print ( "Warning, sound disabled" ) main_dir = os. font : print ( "Warning, fonts disabled" ) if not pg. """ # Import Modules import os import pygame as pg if not pg. Note there are comments here, but for the full explanation, follow along in the tutorial. #!/usr/bin/env python """ This simple example is used for the line-by-line tutorial that comes with pygame.