Patent ID: 8581924

Claim:
A method for enabling a screen-switching animation, comprising: a processor setting color values for all pixel points in a first and a second training images, wherein the colors values are different from one another; the processor generating a training sequence using the color values of all the pixel points in the first and the second training images according to a conversion rule of each frame of the screen-switching animation; and the processor playing screen-switching animation from a current screen and a next screen according to the training sequence; wherein the processor setting color values for all pixel points in a first and a second training image comprises: the processor setting color values for all the pixel points in the first training image according to a formula as follows: inputFrame1[0]=1, inputFrame1[i]=i+1, wherein inputFrame1[i] represents a color value of an ith pixel point in the first training image, 0≦i≦width*height−1, width represents a width of the first training image, and height represents a height of the first training image; and the processor setting color values for all the pixel points in the second training image according to a formula as follows: inputFrame2[0]=width*height+1, inputFrame2[i]=width*height+i+1, wherein inputFrame2[i] represents a color value of an ith pixel point in the second training image, 0≦i≦width*height−1, width represents a width of the second training image, and height represents a height of the second training image; the height and the width of the first training image are equal to the height and the width of the second training image, respectively.