Embodiment 1
The embodiment of the present application provides a kind of method to set up of changing interface animation, is used to provide and a kind of interface is cut
The scheme that the draw color that moves is configured.
The executive agent of the method to set up of the changing interface animation that the embodiment of the present application is provided, can be, but not limited to
It is the terminals such as mobile phone, panel computer, PC (Personal Computer, PC) and intelligent television
At least one in equipment.Additionally, the application journey installed on the executive agent, or terminal of the method
Sequence (Application, APP) itself.
For ease of description, hereafter executive agent in this way be user terminal as a example by, the implementation to the method
Mode is introduced.It is appreciated that the executive agent of the method is a kind of exemplary saying for user terminal
It is bright, it is not construed as the restriction to the method.
Specifically, the method to set up of the changing interface animation that the embodiment of the present application is provided implements flow such as
Shown in Fig. 1, mainly comprise the steps:
Step 11, determines at least one color value (the first color value hereinafter);
Wherein, first color value, such as can refer to for representing that six 16 of color are entered in software
Numerical value processed, six bit digitals are divided into 3 groups, every group two, three kinds of intensity of color of red, green, blue are represented successively.
Different colors can be superimposed and be formed by red, green, blue three kinds of basic colors, then the of different colours
One color value can be by showing that three numerical value of red, green, blue each ingredient intensity are represented.
The specific implementation of the color value of determination at least one first that the embodiment of the present application is provided, can include
But it is not limited only to following three kinds:
Mode 1:According to specified image, at least one first color values are determined;
The specified image, can be according to default rule determination, or oneself according to user's setting
Definition rule determines.
According to default rule or custom rule, user terminal can such as be selected in response to the image for receiving
Instruction fetch and determine certain image as the specified image;Or, can be currently used by user terminal
Wallpaper is used as the specified image;Etc..
The specified image is generally bitmap.Each pixel of the specified image possesses color value, pixel tool
Standby color value can also claim pixel color value.
Specifically, user terminal can be by different suction color algorithms, from the pixel face of the specified image
In colour, at least one first color values are determined.
For example, user terminal (according to the function that the algorithm is realized, can be calculated this by set algorithm
Method is referred to as inhaling color algorithm) extract color value in image.Specifically, according to the quantity of the color value to be extracted
Difference, can be using the suction color algorithm of different principle.For example:
, by certain pixel color value of the specified image, the first color can be defined as by inhaling color algorithm
Value, or by multiple pixel color values of the specified image, it is defined as multiple first color values;Or,
User terminal by inhaling color algorithm, can also calculate the equal of all pixels color value of the specified image
Value, and the average is defined as the first color value, this kind of mode is typically relatively specific for extracting first face
The situation of colour;Or,
User terminal can also possess the picture of different colours value by inhaling color algorithm in the statistics specified image
The quantity of element, and the first color value is determined according to statistics, for example, if necessary to extract first face
Colour, the then color value corresponding to maximum quantity in all quantity that will can be counted, as the first face
Colour, extracts multiple first color values if desired, then in all quantity that will can be counted, according to from
Small sequence is arrived greatly, the color value sorted corresponding to forward respective numbers, as need to extract multiple first
Color value;Or,
User terminal can also be by inhaling color algorithm, it is determined that the picture of the dominant hue for representing the specified image
Plain color value, and the pixel color value is defined as the first color value, this kind of mode typically is relatively specific for carrying
A situation for the first color value is taken, if necessary to extract multiple color values, then multiple tones can be determined;
Etc..
Wherein, above-mentioned " dominant hue " represents the basic tendency of color appearance.Specifically, though piece image
So used multiple color, but image is generally have a kind of tendency in color, such as be it is partially blue or partially red,
It is partially warm or colder etc., the basic tendency of color appearance is exactly the dominant hue of piece image.Generally, mass-tone
Tune is divided in terms of changes in temperature, can be had " warm tones ", " cool tone " and " semi-tone ".Typically
Ground, red, orange, yellow is expression warm tones;Green, blue, black represent cool tone;And grey,
Purple, white then represent semi-tone.The brightness of cool tone is higher, and it integrally feels to warm up more partially, warm tones
Brightness it is higher, its entirety feels more colder.
Mode 2:Display includes the color value interface of at least two colors, and according to user to the color value
The selection of the color included in interface, determines at least one first color values;
User terminal can show that the color value interface for users including at least two colors is selected, and in response to
At least one color for receiving chooses instruction, and the corresponding color value of the color is defined as into the first color
Value;The color chooses instruction, such as can be directed to the point in the corresponding region of certain color in color value interface
Hit instruction or gesture instruction.
Mode 3:According to specified event and the mapping relations of color value, at least one first color values are determined.
The specified event, such as can refer to the event with time correlation.For example, user terminal acquiescence is protected
The red-letter day deposited, and user terminal sets the birthday and commemoration day for preserving according to user, etc. event;User
Terminal can be with the mapping relations of date saved and above-mentioned event (e.g., the mapping relations on January 1 and New Year's Day, 2
Months 14 days with the mapping relations of Valentine's Day, etc.), then when user terminal current date (user terminal
System time) when there are the mapping relations with certain event, the triggering event can be considered as.
The specified event, the event that can also refer to the assigned operation for user terminal and trigger.For example,
The clicking operation of the APP icons by showing to user terminal, and the APP for triggering starts (or closing)
Event, the gesture operation at the APP interfaces by showing to user terminal, and the changing interface event for triggering,
Etc..
User terminal can be directed to different events, be respectively provided with and preserve reflecting for different events and color value
Penetrate relation.Wherein, an event can map one or more color values.
Such as, for New Year's Day, the mapping relations on New Year's Day and the color value for representing red can be set;Also such as,
Start event for APP, the event can be set and the color of the APP interfaces dominant hue being activated is represented
The mapping relations of value.
Step 12, according to by performing at least one first color values that step 11 determines, determines that interface is cut
The color value of the interface element that the part or all of frame picture of the picture that moves includes.
In the embodiment of the present application, interface generally refers to that information is transmitted and exchanged between people and machine (computer)
Medium, be user and system carry out two-way information interaction support software, hardware and method set.
I.e. user interface (User Interface, UI), also referred to as man-machine interface (Human-Computer Interface,
Abbreviation HCI).
The changing interface, such as can refer to the boundary of the application A shown on the display screen by user terminal
Face is switched to using the interface of B;Or can refer to by user terminal display screen on show as figure
Locking screen interface shown in 2 switches to operation interface (or being main interface) as shown in Figure 3;Etc..
When changing interface is carried out, if even suddenly directly from a changing interface to another interface, by
It is more stiff in transition effect, it is often possible to that bad experience can be brought to user.Therefore, to avoid
The problem, when changing interface is carried out, user terminal can by changing interface process in the form of animation to
Family shows, such that it is able to how guide user from a changing interface to another interface.Usually, can be with
By the displaying when changing interface is carried out, expression changing interface process animation, referred to as changing interface animation.
It should be noted that each frame picture of composition changing interface animation, can be figure (polar plot),
Can also be image (bitmap).Then, each frame picture for changing interface animation is the situation of image, root
The color value of the interface element that changing interface animation part or whole frame pictures include is determined according to the first color value,
Can specifically include:According to the first color value, part (or whole) frame respectively in changing interface animation
Part (or whole) pixel of image carries out assignment.Each frame picture for changing interface animation is figure
Situation, the interface element that changing interface animation part or whole frame picture include is determined according to the first color value
Color value, can specifically include:According to the corresponding color of the first color value, respectively changing interface animation
In part (or all) region of each several part (or all) frame picture carry out color filling.
In the embodiment of the present application, changing interface animation can be pre-set and preserve in the user terminal
, or generated using the method such as graphic plotting by user terminal.
Used as an example of the application, changing interface animation can include the picture of setting frame, specifically may be used
To preset frame per second, i.e., the frame number of display per second.For each frame picture, different interfaces can be included
One of element, core concept of the application are, dynamic to changing interface using the first color value determined
The color of the interface element in each frame picture that picture includes is filled.
As an example of the application, the quantity of the first color value to be extracted can be preset, and will
The color value of respective numbers, distributes to each Interface Element that each frame picture of composition changing interface animation includes
Element.The distribution can be randomly assigned, or distributed according to corresponding relation set in advance.
As an example of the application, interface element can refer to that picture includes the composition picture each
Content (or being visual object), different interface elements be located at picture diverse location, or it can be said that
Multiple interface elements constitute a frame picture.
As an example of the application, in each frame picture of composition changing interface animation, the position of interface element
Put, size, quantity etc., can be change from frame to frame.Each frame determined using step 11 at least one
Individual first color value carrys out filling interface element.
Used as an example of the application, same interface element is in each frame picture of composition changing interface animation
Color can be with identical, but size and/or position can be with differences.
As an example of the application, the number of the interface element in each frame picture of changing interface animation is constituted
Amount, can be with identical, it is also possible to different.
As an example of the application, the same Interface Element in each frame picture of changing interface animation is constituted
Element, if position changes, can move according to setting smooth trajectory, or random smooth movement, institute
The smooth movement of meaning, can refer to that same interface element is less than setting value in the change in location of consecutive frame.
As an example of the application, the same Interface Element in each frame picture of changing interface animation is constituted
Element, if size changes (as increased or reducing), can be with smooth change, so-called smooth change,
Can refer to that same interface element is less than setting value in the size variation of consecutive frame.
Used as an example of the application, the position of the interface element that the frame of changing interface animation first includes can
Depending on the position (referred to as touch point) according to user's click or slip screen, for example, presetting all circles
The relative position relation of surface element and touch point, then in the first frame it is determined that after touch point, can be calculated,
The position of each interface element.
Used as an example of the application, after the first frame is generated, follow-up each frame median surface element can basis
Setting rule is drawn, and the setting is drawn can be included:Interface element consecutive frame location variation, and/
Or, size variation amount of the interface element in consecutive frame, etc..
In order to the purpose of the process to user's displaying changing interface by changing interface animation, can be reached, use
Family terminal when changing interface animation is generated, believe by the related of the gesture operation that can be received according to user terminal
The breath generation changing interface animation, in one embodiment, the method that the embodiment of the present application is provided is specific
Can include:Obtain the relevant information of gesture operation;According to the relevant information of gesture operation, the boundary is generated
Face switches animation.
Wherein, the gesture operation, can refer to that the changing interface that can trigger that user terminal is received is instructed
Operation, the relevant information of the gesture operation can include but are not limited to following information:
Information 1:The sliding distance of gesture operation.
The sliding distance of the gesture operation, can refer at user terminal operations interface from the gesture operation
On starting point to the operation interface on the distance between terminating point;Or also can also be the starting
Horizontal range or vertical range between point and terminating point.
Information 2:Angle of the gesture operation sliding trace relative to preset coordinate axle.
Wherein, the preset coordinate, such as can refer to that the screen set up based on user terminal displays screen is sat
Mark is included horizontal axis, then angle of the gesture operation sliding trace relative to preset coordinate axle
Degree, can refer to the straight line and user terminal of the starting point Yu terminating point that connect the gesture operation sliding trace
Show the angle of the angle between the horizontal axis at interface.
How below citing is introduced according to above- mentioned information 1 and/or information 2, generates changing interface animation.
Such as, the related to animation effect of interface element can be determined according to the relevant information of gesture operation
Information;The information related to animation effect according to determining, interface of the generation comprising the interface element
Switching animation.Wherein, the information related to animation effect of interface element, such as can include but is not limited to
The size of interface element position and/or interface element in picture.
Determine the related to animation effect of interface element with according to information 1 (sliding distance of gesture operation)
As a example by information, in the embodiment of the present application, can be reflected with the default of interface element size according to different sliding distances
Relation (claiming the first mapping relations afterwards) is penetrated, it is determined that the interface element size that the information 1 for getting is mapped.
It is according to the interface element size for determining, such as raw according to the mode of graphing such that it is able to further
Into the changing interface animation comprising the interface element for possessing the size.Usually, sliding distance is bigger, and it reflects
The interface element size penetrated can be bigger, such that it is able to the interface for enabling users to be included from changing interface animation
In the size of element, control of the gesture operation of oneself for changing interface animation can be perceive intuitively that,
So as to lift Consumer's Experience.Usually, in first mapping relations, same sliding distance can map
Size when same interface element occurs in the part or all of picture of changing interface animation, or, it is same
Sliding distance, it is also possible to map different interface elements and occur in the part or all of picture of changing interface animation
When size.
Determine Interface Element with according to information 2 (angle of the gesture operation sliding trace relative to preset coordinate axle)
As a example by the information related to animation effect of element, in the embodiment of the present application, can be according to different angles and interface
The default mapping relations (claiming the second mapping relations afterwards) of element position, it is determined that the interface with the maps mutually of information 2
Element position.Such that it is able to further, according to the interface element position for determining, such as according to graphing
Mode, generation comprising interface element changing interface animation.Wherein, the changing interface animation of generation is included
At least one interface element meet:The interface element is in the part or all of picture frame of changing interface animation
Position and interface element position consistency determine and the maps mutually of information 2.Usually, described second
In mapping relations, same angle can map same interface element in the part or all of of changing interface animation
Each position in picture, or, same angle, it is also possible to map different interface elements in changing interface animation
Part or all of picture in position.
So that according to information 1 (sliding distance of gesture operation) and information 2, (gesture operation sliding trace is relative
In the angle of preset coordinate axle) determine the information related to animation effect of interface element as a example by, the application reality
Apply in example, according to information 1 at least one interface element can be determined in each of changing interface animation to be generated
Each size in frame picture, determines at least one interface element in each frame picture according to information 2
Each position, and then can according to each size and each position, generate include at least one Interface Element
The changing interface animation of element.Wherein, when determining each position according to information 2, can be with gesture operation
Sliding trace, as another foundation, so that at least one interface element is in each frame picture
In each position meet:It is described on the basis of position of the sliding trace of gesture operation in screen coordinate system
Each position is in scattered state alignment around the benchmark.According to the interface that above- mentioned information 1 and information 2 are generated
Interface element in switching animation, when it is appeared in different picture frames, can there is different position and not
Same size, enables a user to watch the animation effect of change multiterminal, greatly improves user's
Experience.
In the embodiment of the present application, above-mentioned first mapping relations and the second mapping relations can be simple a pair
One simple mapping relations, or the functional relation of complexity, the embodiment of the present application is not defined to this.
Usually, changing interface animation possesses the various attributes relevant with display effect, such as color attribute,
Transparency property, brightness attribute, etc..User terminal has to described by using property value with display effect
The attribute of pass carries out assignment, it is possible to achieve when display interface switches animation so that changing interface animation possesses
The corresponding display effect of the property value.
In the embodiment of the present application, according at least one first color values, changing interface animation part or complete is determined
The color value of the interface element that portion's frame picture includes, such as can include but is not limited to following two ways:
Mode 1:By described at least one first color values, the changing interface animation part or complete is assigned to
The color attribute of the interface element that portion's frame picture includes, in other words, by described at least one first color values,
The fill color of the interface element included as the changing interface animation part or whole frame pictures.
Such as, described at least one first color values can be assigned to changing interface animation part or whole
Certain interface element or whole interface elements that frame picture includes.As an example of the application, by color
Value is assigned to interface element, can be that the picture region corresponding to the interface element is filled using the color value
Domain.Used as an example of the application, the interface element such as can be the display for possessing setting shape
Region.The size of the interface element and the position in picture, can be default, it is also possible to according to preceding
Mode described in text determines.
During the application is implemented, the predetermined number (claiming the first quantity afterwards) can be determined according to predetermined number
The first color value.Interface element included in the changing interface animation, pending color attribute assignment
Quantity (claiming the second quantity afterwards), can be identical with the predetermined number, it is also possible to different.Wherein, treat into
The interface element of row color attribute assignment, can be the interface element for needing Fill Color value.
Specifically, when first quantity is equal to second quantity, can be according to by different first
Color value is assigned to the mode of the color attribute of different interface elements, by the first color value of first quantity,
The color attribute of each interface element is assigned at random;As an example of the application, color value is assigned to boundary
The color attribute of surface element, can be that the picture region corresponding to the interface element is filled using the color value.
When first quantity is more than the second quantity, can (can be with according to predetermined color value selection rule
But it is not limited to randomly select), from the first color value of the first quantity, choose the first color of the second quantity
Value, is assigned to the color attribute of each interface element;
When first quantity is less than the second quantity, same first color value can be assigned to multiple Interface Elements
Element, for example, same first color value is assigned into same type or interface element in adjacent domain.
Mode 2:According to described at least one first color values, it is determined that with described at least one first color values
The color value (claiming the second color value) of maps mutually;And by the color value of the maps mutually, it is assigned to the boundary
Face switches the color attribute of the interface element that animation part or whole frame pictures include.
For latter implementation, in actual applications, the color value set of predetermined number can be set,
And set up the mapping relations (claiming the first mapping relations afterwards) of each color value set and different colours value scope.
Wherein, each color value set includes at least one color value respectively;The color value included in each color value set,
Equivalent to above-mentioned second color value.
Then user terminal can determine the first color according to the first color value and the different colours value scope
The color value scope that value is fallen into;According to the first mapping relations, the color value that the first color value is fallen into is determined
The color value set of scope mapping;It is changing interface animation according to the color value in the color value set for determining
Color attribute assignment.
In the prior art, the changing interface animation of user terminal is often to have been pre-set by developer
Into, and preserve on the subscriber terminal.I.e., at present, the various and display effect that changing interface animation possesses
Relevant attribute (e.g., color attribute), is the default value for pre-setting.
In the embodiment of the present application, user terminal can be changing interface animation according to the first color value for determining
Color attribute assignment so that the color of changing interface animation and the first color value are produced associating.Because
Three kinds of modes that first color value can be provided by step 11, are set by user flexibility, such that it is able to full
Sufficient user flexibly sets the demand of changing interface animation color according to itself hobby.
It should be noted that can be a changing interface according to the first color value in the embodiment of the present application
The color attribute assignment of the interface element that animation part or whole frame pictures include, or cut at multiple interfaces
The color attribute assignment of the interface element that the part or all of frame picture of the picture that moves includes, the embodiment of the present application is to face
The quantity of the changing interface animation that color attribute is assigned is not defined.
In one embodiment, when by performing step 11, when only determining first color value, can be with
First color value according to the determination, is that all interface elements that changing interface animation includes carry out face
Color attribute assignment;Or, can be changing interface animation bag according to the determination first color value
The specific interface element for including carries out color attribute assignment.
Also, it should be noted that when at least two first color values is determined by performing step 11, can
By described at least two first color values, at least two changing interface animation parts or whole are assigned to respectively
The interface element that frame picture includes;Or described at least two first color values can also be respectively assigned to
The interface element that one changing interface animation part or whole frame pictures include.
Used as an example of the application, the interface element can possess different shape, such as, circular,
Square, triangle etc..
In one embodiment, the implementation of step 12 can include:According to described at least one
The mapping relations of one color value and the positional information of the interface element, and at least one first color
Value, determines the color value of the interface element that changing interface animation part or whole frame pictures include.
Such as, on the premise of changing interface animation is pre-set, can set include not in the animation
Position with interface element in picture.And specify:Represent warm-toned first color value, mapping position 1,
Represent the first color value of cool tone, mapping position 2.So, described at least one subsequently are being determined
After one color value, it is possible to according to the mapping relations of regulation, and at least one first color value, really
Determine the color value of the interface element that changing interface animation part or whole frame pictures include.
At present, user can often be respectively different interfaces and set different wallpaper pictures, such as, and can be with
Can also be operation for locking screen interface sets screen locking wallpaper (that is, being illustrated in the wallpaper picture of locking screen interface)
Interface sets desktop wallpaper (that is, being illustrated in the wallpaper picture of operation interface).Then when user terminal displays are locked
Screen interface, and receive during for indicating the changing interface for switching to operation interface to instruct, user terminal is by exhibition
Show the changing interface animation for pre-setting, and after the completion of the changing interface animated show, display operation circle
Face, while screen locking wallpaper is switched into desktop wallpaper.
Because in the prior art, changing interface animation is often to pre-set completion by developer, and is protected
Deposit on the subscriber terminal, therefore when desktop wallpaper and screen locking wallpaper are voluntarily set by user, changing interface
Between animation, wallpaper desktop and screen locking wallpaper and onrelevant, consequently, it is possible to the face of changing interface animation occurs
Color and wallpaper color are uncoordinated, and (such as, the mass-tone of screen locking wallpaper is adjusted to warm tones, and changing interface animation
Mass-tone is adjusted to cool tone, etc.) situation, this can bring poor visual experience for user.
In one embodiment, user terminal can according to the first color value determined according to interface wallpaper,
It is the color attribute assignment of changing interface animation, so that the color of changing interface animation and the first color value
Association is produced, and then causes that the color of changing interface animation is produced with the color of the interface wallpaper and associated.
Associated by making the color of changing interface animation be produced with the color of the interface wallpaper, use can be met
Family is liked according to itself and flexibly sets the demand of changing interface animation color, while can also ensure that interface is cut
Move harmony of the picture with the interface wallpaper in color, is that user brings pleasing visual experience.
It should be noted that in order to the color of changing interface animation can be made to produce pass with the color of interface wallpaper
Connection, in one embodiment, the method that the application is implemented also includes:By color value at least one according to
Individual first color value be determined after any one frame picture for being included of the changing interface animation, be set to
The background at the interface that changing interface animation shows after terminating.It is flat in order to reach as an example of the application
The effect that sliding cutting is changed, the last frame picture that can be included with selection interface switching animation, is set to interface and cut
The background at the interface that the picture that moves shows after terminating.For example, carrying out locking screen interface and operation interface in user terminal
Switching when, user terminal can switch the last frame picture that is included of animation, be set to operation interface
Desktop wallpaper.
It should be noted that triggering the changing interface animation after user terminal is assigned according to color attribute
Comprising an at least frame picture, set interface wallpaper condition, such as can refer to that user terminal is received
The idsplay order of operation interface;Or may also mean that user terminal determines at least one first color values.
For example, after user terminal determines at least one first color values, can be according at least the first face for determining
Colour, determines the color value of changing interface animation, and color value is carried out according at least one first color values
It is determined that after at least frame picture that is included of the changing interface animation, be set to interface wallpaper picture.
In one embodiment, when user terminal is according to the changing interface instruction for receiving, screen locking circle is carried out
During the switching of face and operation interface, the screen locking wallpaper that user terminal can be set according to user, it is determined that at least
One the first color value;It is locking screen interface and operation interface according at least one first color values for determining
Changing interface animation color attribute assignment, and show color attribute be assigned after the changing interface
Animation;After the completion of the changing interface animated show, user terminal can be according in changing interface animation
Comprising last frame picture, the desktop wallpaper of operation interface is set, and show operation interface.
By aforesaid operations, due to the color of the screen locking wallpaper of the color and locking screen interface of changing interface animation
Desktop wallpaper with association, and operation interface is that the frame picture included according to changing interface animation sets
Put, thus screen locking wallpaper, desktop wallpaper and changing interface animation, have between the color of this three
Interrelated (e.g., the color of screen locking wallpaper, desktop wallpaper and changing interface animation is red, etc.
Deng), thereby may be ensured that changing interface animation respectively with carry out two interface wallpapers before and after changing interface
Picture is respectively provided with harmony in color, and then during changing interface, is that user brings and preferably regards
Feel experience.
It should be noted that when user terminal is mobile phone, changing interface process is from mobile phone screen locking changing interface
During to mobile phone operation interface, above-mentioned steps 11 and step 12 can be by the modules identified below on mobile phone
To realize, can specifically include:
Locking screen interface basic module, the module such as can be locking screen interface foundation class
(KeyguardHostView);Wallpaper processing module, the module such as can be wallpaper treatment class
(WallpaperScreenElementEx);Bitmap file and color value preserving module, the module such as may be used
Being that class (WallpaperScreenElementHelper) is preserved in the middle of bitmap file and color;Wallpaper inhales color
Processing module, the module such as can be that wallpaper inhales color treatment class (ParticleHelper);Inhale at color algorithm
Li Ku (Libparticalcolor.so);Dynamic effect generation module module can such as be that effect displaying color is carried
For class (WallpaperControlScreenElement);Dynamic effect display module, the module such as can be lock
Dynamic effect displaying class (Lockstyle) of screen.
Then, flow chart is implemented by what above-mentioned module completed step 11 described previously and step 12
As shown in figure 4, specifically including:
Locking screen interface basic module load lock screen-wall paper, and the screen locking wallpaper is sent to wallpaper treatment mould
Block;
The screen locking wallpaper that wallpaper processing module will be received is converted into bitmap file, and sends to bitmap file
And color value preserving module;
The bitmap file that bitmap file and color value preserving module will be received is sent to wallpaper inhales color treatment mould
Block;
Wallpaper inhales color processing module and passes through to call the suction color algorithm inhaled in color algorithm process storehouse, to what is received
Bitmap file carries out inhaling color treatment, and the color value that will be obtained beams back bitmap file and color value preserving module.
The color value that bitmap file and color value preserving module will be received is sent to dynamic effect generation module;
Dynamic effect generation module sets the color of changing interface animation according to the color value for receiving;
When mobile phone carries out changing interface, the changing interface after displaying color is set is moved dynamic effect display module
Draw.
The method to set up of the changing interface animation provided using the embodiment of the present application 1, due to can be according to determination
At least one color value so that there is provided a kind of scheme being configured to changing interface animation color.
It should be noted that the executive agent that embodiment 1 provides each step of method may each be same and set
It is standby, or, the method is also by distinct device as executive agent.Such as, the executive agent of step 11 can
Think user terminal 1, the executive agent of step 12 can be user terminal 2;Or step 11 and step
12 executive agent is user terminal 1, etc..
It is to systematically retouch also, it should be noted that being that each step sets numbering in the embodiment of the present application
Each step is stated, is not that the execution sequence of step is limited, i.e. be each step in the embodiment of the present application
The numbering of setting can not be considered as the feature of conditioning step execution sequence.
Embodiment 4
The embodiment of the present application provides a kind of setting device of changing interface animation, is used to provide and a kind of interface is cut
The scheme that the draw color that moves is configured.
The device, such as can be smart mobile phone or computer etc..The setting device of the changing interface animation can
With including processor and memory etc..
Wherein, memory, for storage program instruction;Processor, is coupled to the memory, for reading
The programmed instruction of the memory storage is taken, and as response, performs following operation:Determine at least one face
Colour;According at least one color value, determine what changing interface animation part or whole frame pictures included
The color value of interface element.
In order to user can be made flexibly to determine the first color value as needed, in one embodiment, place
Reason device, is used for:According to specified image, at least one color value is determined;Or display includes at least two face
The color value interface of color, and the color according to user to being included in the color value interface selection, it is determined that extremely
A few color value;Or according to specified event and the mapping relations of color value, determine at least one color value.
In one embodiment, processor, the changing interface after being additionally operable to be determined color value is moved
At least frame picture that picture is included performs scheduled operation.
In one embodiment, processor, for color value to be determined after the changing interface animation
Comprising last frame picture, be set to after changing interface animation terminates show interface background.
In one embodiment, the background at the interface shown after changing interface animation terminates includes:Desktop wall
Paper.
In one embodiment, processor, the relevant information for obtaining gesture operation;Grasped according to gesture
The relevant information of work, generates the changing interface animation.
In one embodiment, at least in the relevant information of the gesture operation, including following information
It is individual:The sliding distance of gesture operation;Angle of the gesture operation sliding trace relative to preset coordinate axle.
In one embodiment, processor, for the relevant information according to the gesture operation, determines boundary
The information related to animation effect of surface element;The information related to animation effect of interface element, including boundary
The size of surface element position and/or interface element in picture;It is related to animation effect according to determining
Information, the changing interface animation of the generation comprising the interface element.
In one embodiment, processor, for according at least one color value and the Interface Element
The mapping relations of the positional information of element, and at least one color value, determine changing interface animation part
Or the color value of interface element that whole frame pictures include.
In one embodiment, processor, for according to the mapping relations, by least one face
Colour, is assigned to the color category of the interface element that the changing interface animation part or whole frame pictures include
Property;Or, according at least one color value, it is determined that the color with least one color value maps mutually
Value;And according to the mapping relations, by the color value of the maps mutually, it is assigned to changing interface animation part
Or the color attribute of interface element that whole frame pictures include.
The setting device of the changing interface animation provided using the embodiment of the present application 4, due to can be according to determination
At least one color value so that there is provided a kind of scheme being configured to changing interface animation color.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and
/ or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided
The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only wrapped
Include those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can be used and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on implement computer program product form.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., within the scope of should be included in claims hereof.