if you changed the window so that was black and , was whiteit would look like thisto the userit looks like the black pixel has --moved|over to the left if you redrew the window to have the black pixel at it would continue to look like the black pixel is moving leftit may look like the black pixel is movingbut this is just an illusion to the computerit is just showing three different images that each just happen to have one black pixel consider if the three following images were rapidly shown on the screento the userit would look like the cat is moving towards the squirrel but to the computerthey're just bunch of pixels the trick to making believable looking animation is to have your program draw picture to the windowwait fraction of secondand then draw slightly different picture here is an example program demonstrating simple animation type this code into idle' file editor and save it as catanimation py it will also require the image file cat png to be in the same folder as the catanimation py file you can download this image from this code is available at