Animation effect control method and device, electronic equipment and readable storage medium
By obtaining and processing water ripple diffusion animation information, ensuring that its display order and form are consistent in the animation queue, it solves the problem that water ripple animation cannot reach the edge at the same time in the prior art, and realizes the natural, coordinated presentation and good user experience of the animation.
Patent Information
- Application Number
- CN202411719864.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-21
AI Technical Summary
In the prior art, multiple water ripples diffusion animations cannot reach the same fixed edge at the same time, resulting in unnatural animation presentation effects and cannot meet the specific application needs that spread to the edge at the same time, causing visual inconsistency and distortion to the users.
By obtaining the water wave diffusion animation information and display effect information, it is transferred to the preset animation queue, determining the display form and order information based on the display effect information, extracting the animation information from the animation queue in turn, and animation display is performed based on the display form and duration information to ensure that the water wave can diffuse to the same edge at the same time.
It realizes the natural and coordinated presentation of water ripples animation, making the user more visually consistent and improving the user's viewing experience.
Smart Images

Figure CN119672190A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to, but are not limited to, the field of animation display technology, and in particular, to an animation effect control method, device, electronic device, and computer-readable storage medium. Background Art
[0002] As people's living standards continue to improve, more and more people are shopping for insurance. In the process of promoting and displaying insurance projects, animation is generally used to display them to users. In the process of using multiple water ripple diffusion animations to display them to users, the diffused water ripples cannot reach the same fixed edge at the same time, which makes the presentation effect of the water ripple animation unnatural and cannot meet the specific application requirements of diffusing to the same edge at the same time, which brings visual incoordination and distortion to users, and thus brings users a bad viewing experience. Summary of the invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] In order to solve the problems mentioned in the above background technology, the embodiments of the present application provide an animation effect control method, device, electronic device and computer-readable storage medium, which can enable water ripples to spread to the same edge at the same time, making the user more visually coordinated, thereby bringing the user a good viewing experience.
[0005] In a first aspect, an embodiment of the present application provides an animation effect control method, the method comprising:
[0006] Acquire water ripple diffusion animation information and water ripple display effect information, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information;
[0007] Transferring the water ripple diffusion animation information to a preset animation queue;
[0008] Determine the water ripple display form and water ripple display sequence information according to the water ripple display effect information;
[0009] Extracting the water ripple animation information from the animation queue in sequence according to the water ripple display order information, wherein each water ripple animation information carries display duration information;
[0010] Animation display is performed according to the water ripple display form, the display duration information and the water ripple animation information.
[0011] According to some embodiments of the present application, transferring the water ripple diffusion animation information to a preset animation queue includes:
[0012] Divide the animation queue into a plurality of sub-queues, and add a queue mark to each of the sub-queues;
[0013] Adding a storage mark to each group of the water ripple animation information in the water ripple diffusion animation information;
[0014] The queue mark of the sub-queue and the storage mark of the water ripple animation information are matched to store the water ripple animation information in the corresponding sub-queue.
[0015] According to some embodiments of the present application, determining the water ripple display form and the water ripple display sequence information according to the water ripple display effect information includes:
[0016] Analyzing and processing the water ripple display effect information to obtain water ripple shape information, water ripple diffusion speed information, water ripple color information, water ripple transparency information, and water ripple sorting information;
[0017] Determining the water ripple shape information, the water ripple diffusion speed information, the water ripple color information and the water ripple transparency information as the water ripple display form;
[0018] The water ripple sorting information is determined as the water ripple display order information.
[0019] According to some embodiments of the present application, extracting the water ripple animation information from the animation queue in sequence according to the water ripple display order information includes:
[0020] Determining a display order of the water ripple animation information according to the water ripple display order information;
[0021] Determining the arrangement order of the queue marks according to the display order of the water ripple animation information;
[0022] The corresponding water ripple animation information is extracted from the animation queue in sequence according to the arrangement order of the queue marks.
[0023] According to some embodiments of the present application, the performing animation display according to the water ripple display form, the display duration information and the water ripple animation information includes:
[0024] Calculate the display duration information of each water ripple animation information according to the water ripple diffusion speed information and the water ripple display sequence information;
[0025] According to the water ripple display sequence information and the display duration information, the water ripple shape information, the water ripple color information and the water ripple transparency information, animation display effect control processing is performed on the water ripple animation information.
[0026] According to some embodiments of the present application, after performing animation display according to the water ripple display form, the display duration information and the water ripple animation information, the method further includes:
[0027] Based on a preset screen edge detection module, the arrival time of the water ripples corresponding to each group of the water ripple animation information is detected to obtain arrival time verification information;
[0028] When the arrival time verification information indicates that the time at which the water ripples corresponding to each group of the water ripple animation information arrive at the screen edge detection module is consistent, controlling the animation display effect of the water ripple animation information to remain unchanged;
[0029] When the arrival time verification information indicates that the time at which the water ripples corresponding to each group of the water ripple animation information arrive at the screen edge detection module is inconsistent, the water ripple display form is adjusted.
[0030] According to some embodiments of the present application, the adjusting process of the water ripple display form includes:
[0031] The water ripple diffusion speed information is adjusted according to the time when the water ripples corresponding to the water ripple animation information reach the screen edge detection module and the display duration information.
[0032] In a second aspect, the embodiment of the present application further provides an animation effect control device, comprising:
[0033] A first processing module is used to obtain water ripple diffusion animation information and water ripple display effect information, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information;
[0034] A second processing module, used for transferring the water ripple diffusion animation information to a preset animation queue;
[0035] A third processing module is used to determine the water ripple display form and water ripple display sequence information according to the water ripple display effect information;
[0036] A fourth processing module, configured to extract the water ripple animation information from the animation queue in sequence according to the water ripple display order information, wherein each water ripple animation information carries display duration information;
[0037] The fifth processing module is used to perform animation display according to the water ripple display form, the display duration information and the water ripple animation information.
[0038] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the animation effect control method as described in the first aspect above is implemented.
[0039] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the animation effect control method as described in the first aspect above.
[0040] According to the animation effect control method of the embodiment provided by the present application, at least the following beneficial effects are achieved: in the process of animation effect control processing, firstly, water ripple diffusion animation information and water ripple display effect information are obtained, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information; then, the water ripple diffusion animation information is transferred to a preset animation queue, and then the water ripple display form and water ripple display sequence information are determined according to the water ripple display effect information; then, the water ripple animation information is sequentially extracted from the animation queue according to the water ripple display sequence information, wherein each water ripple animation information carries display duration information; finally, animation display processing can be performed according to the water ripple display form, display duration information and water ripple animation information. Through the above technical solution, the water ripples can be diffused to the same edge at the same time, making the user more visually coordinated, thereby bringing a good viewing experience to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0042] Figure 1 is a flow chart of an animation effect control method provided by an embodiment of the present application;
[0043] Figure 2 is a specific flow chart of step S200 provided in one embodiment of the present application;
[0044] Figure 3 is a specific flow chart of step S300 provided in one embodiment of the present application;
[0045] Figure 4 is a specific flow chart of step S400 provided in one embodiment of the present application;
[0046] Figure 5 is a specific flow chart of step S500 provided in one embodiment of the present application;
[0047] Figure 6is a specific flow chart after executing step S500 provided by an embodiment of the present application;
[0048] Figure 7 is a specific flow chart of step S630 provided in one embodiment of the present application;
[0049] Figure 8 is a schematic diagram of an animation effect control device provided by an embodiment of the present application;
[0050] Fig. 9 It is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] It should be noted that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0053] It should be noted that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0054] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0055] AI is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial intelligence is a branch of computer science. Artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robots, language recognition, image recognition, natural language processing and expert systems. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0056] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0057] Artificial intelligence is AI. AI is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0058] The servers involved in artificial intelligence technology can be independent servers or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0059] The present application provides an animation effect control method, device, electronic device and computer-readable storage medium. In the process of animation effect control processing, firstly, water ripple diffusion animation information and water ripple display effect information are obtained, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information; then the water ripple diffusion animation information is transferred to a preset animation queue, and then the water ripple display form and water ripple display sequence information are determined according to the water ripple display effect information; then the water ripple animation information is sequentially extracted from the animation queue according to the water ripple display sequence information, wherein each water ripple animation information carries display duration information; finally, animation display processing can be performed according to the water ripple display form, display duration information and water ripple animation information. Through the above technical solution, water ripples can be spread to the same edge at the same time, making the user more visually coordinated, thereby bringing a good viewing experience to the user.
[0060] The animation effect control method provided in the embodiment of the present application relates to the field of animation display technology. The animation effect control method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the animation effect control method, etc., but is not limited to the above forms.
[0061] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0062] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0063] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0064] like Figure 1 As shown, Figure 1It is a flowchart of an animation effect control method provided by an embodiment of the present application. The animation effect control method includes but is not limited to steps S100 to S500.
[0065] Step S100, obtaining water ripple diffusion animation information and water ripple display effect information, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information;
[0066] Step S200, transferring the water ripple diffusion animation information to a preset animation queue;
[0067] Step S300, determining the water ripple display form and water ripple display sequence information according to the water ripple display effect information;
[0068] Step S400, extracting water ripple animation information from the animation queue in sequence according to the water ripple display order information, wherein each water ripple animation information carries display duration information;
[0069] Step S500, performing animation display according to the water ripple display form, display duration information and water ripple animation information.
[0070] It should be noted that in the process of animation effect control processing, firstly, the water ripple diffusion animation information and the water ripple display effect information are obtained, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information; then the water ripple diffusion animation information is transferred to the preset animation queue, and then the water ripple display form and the water ripple display sequence information are determined according to the water ripple display effect information; then the water ripple animation information is sequentially extracted from the animation queue according to the water ripple display sequence information, wherein each water ripple animation information carries the display duration information; finally, the animation display processing can be performed according to the water ripple display form, the display duration information and the water ripple animation information. Through the above technical scheme, the water ripples can be spread to the same edge at the same time, making the user more visually coordinated, thereby bringing a good viewing experience to the user.
[0071] It is worth noting that in the prior art, multiple water ripple diffusion animations usually cannot reach the same fixed edge at the same time, which will cause the presentation effect of the water ripple animation to be relatively unnatural and unable to meet the specific application requirements of simultaneously diffusing to the edge; in the display of multiple water ripples, the prior art cannot achieve multiple water ripples diffusing outward from a central point at the same time, and usually arrive at the fixed edge in sequence at different time nodes. This difference will cause visual incoordination and distortion. However, through the animation effect control method of the embodiment of the present application, the water ripples can be allowed to diffuse to the same edge at the same time, making the user more visually coordinated, thereby bringing a good viewing experience to the user.
[0072] It is worth noting that the water ripple diffusion animation information includes multiple groups of water ripple animation information. In the process of controlling the animation effect, it is first necessary to obtain the water ripple diffusion animation information and the water ripple display effect information, and then the animation effect control processing can be performed according to the water ripple diffusion animation information and the water ripple display effect information; wherein, before obtaining the water ripple diffusion animation information and the water ripple display effect information, the user's permission or consent will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0073] It is worth noting that the water ripple diffusion animation information is used to characterize the diffusion of multiple water ripples; the water ripple display effect information is used to characterize how the water ripples reach the fixed edge position; in some specific embodiments, in the process of displaying financial projects, they are generally displayed to users in the form of animation, and in the process of using multiple water ripple diffusion animations to display to users, the diffused water ripples cannot reach the same fixed edge at the same time, which makes the presentation effect of the water ripple animation unnatural and cannot meet the specific application requirements of diffusing to the same edge at the same time, which brings visual incoordination and distortion to users and brings users a bad viewing experience. In order to achieve better animation effects and bring users a better viewing experience, the embodiment of the present application first transfers the water ripple diffusion animation information to a preset animation queue; then determines the water ripple display form and water ripple display sequence information according to the water ripple display effect; then extracts the water ripple animation information from the animation queue in sequence according to the water ripple display sequence information; finally, the display form and display duration of each water ripple can be controlled and processed according to the display duration information, water ripple display form and water ripple animation information carried by each water ripple animation information, so that each water ripple can reach the same fixed edge at the same time, bringing users a better user experience.
[0074] It is worth noting that the water ripple diffusion animation information is transferred to a pre-set animation queue, and then the water ripple display form and water ripple display sequence information can be determined according to the water ripple display effect information. Subsequently, the corresponding water ripple animation information can be extracted from the animation queue in sequence according to the water ripple display sequence information. Among them, since each water ripple animation information carries display duration information, the display effect of each water ripple can be controlled and processed according to the water ripple display form, the display duration information carried by each water ripple animation information, and the water ripple animation information. The water ripple diffusion speed is calculated according to the display duration information, so that multiple water ripples can reach the same fixed edge position at the same time, so as to enhance the user's viewing experience.
[0075] It is worth noting that the technical solutions of the above embodiments provide a more natural and coordinated animation rendering effect, which can be used in a variety of applications, such as graphic design, game development, user interface, etc., to enhance visual appeal and user experience. Since multiple water ripples can reach the edge at the same time, the total duration of animation playback is reduced, thereby saving system resources and battery consumption. The implementation of this technical solution is relatively simple and easy to integrate into various applications, reducing development costs and complexity. The technical solution of this application includes the combined implementation of multiple custom animations to achieve rich visual effects.
[0076] In some embodiments, Figure 2 As shown, the above step S200 may include but is not limited to steps S210 to S230.
[0077] Step S210, dividing the animation queue into multiple sub-queues, and adding a queue mark to each sub-queue;
[0078] Step S220, adding a storage mark to each set of water ripple animation information in the water ripple diffusion animation information;
[0079] Step S230, matching the queue mark of the sub-queue with the storage mark of the water ripple animation information to store the water ripple animation information in the corresponding sub-queue.
[0080] It should be noted that, in the process of transferring the water ripple diffusion animation information to the preset animation queue, the animation queue is first divided into multiple sub-queues, and a queue mark is added to each sub-queue; then a storage mark is added to each group of water ripple animation information in the water ripple diffusion animation information; subsequently, the queue mark of the sub-queue and the storage mark of the water ripple animation information can be matched and processed, so that the water ripple animation information can be stored in the corresponding sub-queue. Through the above technical solution, the water ripple diffusion animation information can be accurately and quickly transferred to the preset animation queue, so as to prepare for the subsequent extraction of the water ripple animation information.
[0081] It is worth noting that the embodiment of the present application first divides the animation queue into multiple sub-queues, and adds a queue mark to each sub-queue; and adds a storage mark to each group of water ripple animation information in the water ripple diffusion animation information; finally, the queue mark and the storage mark can be matched, so that a group of water ripple animation information will only be stored in a unique sub-queue, so that the storage of water ripple diffusion animation information can be faster and more accurate, preparing for subsequent information extraction.
[0082] Exemplarily, the animation queue is divided into multiple sub-queues, and a queue mark is added to each sub-queue, for example, the queue mark of one of the sub-queues is "01"; a storage mark is added to each group of water ripple animation information in the water ripple diffusion animation information, for example, the storage mark of one group of water ripple animation information is also "01", and subsequently the group of water ripple animation information with storage mark "01" will be stored in the sub-queue with queue mark "01".
[0083] In some embodiments, Figure 3 As shown, the above step S300 may include but is not limited to step S310 to step S330.
[0084] Step S310, analyzing and processing the water ripple display effect information to obtain water ripple shape information, water ripple diffusion speed information, water ripple color information, water ripple transparency information and water ripple sorting information;
[0085] Step S320, determining the water ripple shape information, the water ripple diffusion speed information, the water ripple color information and the water ripple transparency information as the water ripple display form;
[0086] Step S330: determine the water ripple sorting information as the water ripple display order information.
[0087] It should be noted that, in the process of determining the water ripple display form and water ripple display sequence information according to the water ripple display effect information, the water ripple display effect information is first analyzed and processed to obtain the water ripple shape information, water ripple diffusion speed information, water ripple color information, water ripple transparency information and water ripple sorting information; the water ripple shape information, water ripple diffusion speed information, water ripple color information and water ripple transparency information are determined as the water ripple display form; and then the water ripple sorting information can also be determined as the water ripple display sequence information; through the above technical scheme, the water ripple display form and water ripple display sequence information can be determined according to the water ripple display effect information, so as to make the prerequisite preparation for the subsequent animation display.
[0088] It is worth noting that the water ripple shape information is used to characterize the shape of the diffusing water ripples, the water ripple diffusion speed information is used to characterize the diffusion speed of the diffusing water ripples, the water ripple color information is used to characterize the color of the diffusing water ripples, the water ripple transparency information is used to characterize the transparency of the diffusing water ripples, and the water ripple sorting information is used to characterize the order of water ripple animation information extracted from the animation queue.
[0089] In some embodiments, Figure 4 As shown, the above step S400 may include but is not limited to step S410 to step S430.
[0090] Step S410, determining the display order of the water ripple animation information according to the water ripple display order information;
[0091] Step S420, determining the arrangement order of the queue marks according to the display order of the water ripple animation information;
[0092] Step S430, extracting corresponding water ripple animation information from the animation queue in sequence according to the arrangement order of the queue marks.
[0093] It should be noted that, in the process of extracting water ripple animation information from the animation queue in sequence according to the water ripple display order information, the display order of the water ripple animation information is first determined according to the water ripple display order information; then the arrangement order of the queue marks is determined according to the display order of the water ripple animation information; finally, the corresponding water ripple animation information is extracted from the animation queue in sequence according to the arrangement order of the queue marks. Through the above technical scheme, the extraction of water ripple animation information can be simpler, faster and more accurate.
[0094] It is worth noting that the display order of the water ripple animation information can be determined according to the water ripple display order information; then the arrangement order of the queue marks can be determined according to the display order of the water ripple animation information, and finally the corresponding water ripple animation information can be extracted from the animation queue according to the arrangement order of the queue marks. Through the above technical solution, the extraction of water ripple animation information can be more accurate and fast. Among them, the order in which the water ripple animation information is extracted from the animation queue is determined according to the arrangement order of the queue marks, and the entire information extraction process is simpler, faster and more reliable.
[0095] In some embodiments, Figure 5 As shown, the above step S500 may include but is not limited to step S510 to step S520.
[0096] Step S510, calculating the display duration information of each water ripple animation information according to the water ripple diffusion speed information and the water ripple display sequence information;
[0097] Step S520, performing animation display effect control processing on the water ripple animation information according to the water ripple display sequence information and the display duration information using the water ripple shape information, the water ripple color information and the water ripple transparency information.
[0098] It should be noted that, in the process of performing animation display according to the water ripple display form, display duration information and water ripple animation information, the display duration information of each water ripple animation information is first calculated according to the water ripple diffusion speed information and the water ripple display sequence information; then, according to the water ripple display sequence and display duration information, the water ripple animation information is controlled and processed for animation display effect with the water ripple shape information, water ripple color information and water ripple transparency information; by controlling the water ripple diffusion speed, different water ripples can arrive at the same edge position at the same time, thereby bringing a good viewing experience to users.
[0099] It can be understood that the display duration information of each water ripple animation information can be calculated based on the water ripple diffusion speed information and the water ripple display sequence information, that is, the original display duration information can be calculated based on the ratio of the distance from the ripple diffusion point to the same edge and the water ripple diffusion speed, and the display waiting time can be determined based on the water ripple display sequence information, so that the sum of the two can be used as the display duration information.
[0100] In some embodiments, Figure 6 As shown, after executing the above step S500, it may include but not be limited to steps S610 to S630.
[0101] Step S610, detecting the arrival time of the water ripples corresponding to each set of water ripple animation information based on a preset screen edge detection module to obtain arrival time verification information;
[0102] Step S620, when the arrival time verification information indicates that the time at which the water ripples corresponding to each set of water ripple animation information arrive at the screen edge detection module is consistent, controlling the animation display effect of the water ripple animation information to remain unchanged;
[0103] Step S630, when the arrival time verification information indicates that the time when the water ripples corresponding to each set of water ripple animation information arrive at the screen edge detection module is inconsistent, the water ripple display form is adjusted.
[0104] It should be noted that after the animation display is performed according to the water ripple display form, display duration information and water ripple animation information, the arrival time of the water ripples corresponding to each group of water ripple animation information can also be detected and processed based on the preset screen edge detection module, and then the arrival time verification information can be obtained; and when the arrival time verification information indicates that the time when the water ripples corresponding to each group of water wave animation information arrive at the screen edge detection module is consistent, the animation display effect of the water ripple animation information can be controlled to remain unchanged; when the arrival time verification information indicates that the time when the water ripples corresponding to each group of water ripple animation information arrive at the screen edge detection module is inconsistent, the water ripple display form can be adjusted; through the above technical scheme, the operator can timely and easily adjust the diffusion speed of the water ripples arriving at the same edge position, and the whole adjustment process is flexible, fast and convenient.
[0105] In some embodiments, Figure 7 As shown, the above step S630 may include but is not limited to step S631.
[0106] Step S631, adjusting the water ripple diffusion speed information according to the time when the water ripples corresponding to the water ripple animation information reach the screen edge detection module and the display duration information.
[0107] It should be noted that in the process of adjusting the water ripple display form, the water ripple diffusion speed can be newly adjusted according to the time when the water ripples corresponding to the water ripple animation information reach the screen edge detection module and the display duration information, so that multiple water ripples can arrive at the same edge position for processing at the same time, bringing a good viewing experience to users.
[0108] In addition, if Figure 8 As shown, an embodiment of the present application further provides an animation effect control device 10, comprising:
[0109] The first processing module 100 is used to obtain water ripple diffusion animation information and water ripple display effect information, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information;
[0110] The second processing module 200 is used to transfer the water ripple diffusion animation information to a preset animation queue;
[0111] The third processing module 300 is used to determine the water ripple display form and water ripple display sequence information according to the water ripple display effect information;
[0112] The fourth processing module 400 is used to extract water ripple animation information from the animation queue in sequence according to the water ripple display order information, wherein each water ripple animation information carries display duration information;
[0113] The fifth processing module 500 is used to perform animation display according to the water ripple display form, display duration information and water ripple animation information.
[0114] It should be noted that in the process of animation effect control processing, firstly, the water ripple diffusion animation information and the water ripple display effect information are obtained, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information; then the water ripple diffusion animation information is transferred to the preset animation queue, and then the water ripple display form and the water ripple display sequence information are determined according to the water ripple display effect information; then the water ripple animation information is sequentially extracted from the animation queue according to the water ripple display sequence information, wherein each water ripple animation information carries the display duration information; finally, the animation display processing can be performed according to the water ripple display form, the display duration information and the water ripple animation information. Through the above technical scheme, the water ripples can be spread to the same edge at the same time, making the user more visually coordinated, thereby bringing a good viewing experience to the user.
[0115] The specific implementation of the animation effect control device 10 is substantially the same as the specific implementation of the above-mentioned animation effect control method, and will not be described in detail herein.
[0116] In addition, if Fig. 9 As shown, an embodiment of the present application further provides an electronic device 700 , which includes: a memory 720 , a processor 710 , and a computer program stored in the memory 720 and executable on the processor 710 .
[0117] The processor 710 and the memory 720 may be connected via a bus or in other ways.
[0118] The non-transient software programs and instructions required to implement the animation effect control methods of the above embodiments are stored in the memory 720 , and when executed by the processor 710 , the animation effect control methods of the above embodiments are executed.
[0119] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor 710 or a controller, for example, by a processor 710 in the above-mentioned device embodiment, so that the above-mentioned processor 710 can execute the animation effect control method in the above-mentioned embodiment.
[0121] The above embodiments may be used in combination, and modules with the same name in different embodiments may be the same or different.
[0122] The above describes specific embodiments of the present application, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0123] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0124] The apparatus, device, computer-readable storage medium and method provided in the embodiments of the present application correspond to each other. Therefore, the apparatus, device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device and computer storage medium will not be repeated here.
[0125] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0126] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0127] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0128] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0130] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0133] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0134] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0135] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0136] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0137] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0138] Embodiments of the present application may be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. Embodiments of the present application may also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0139] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0140] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for controlling animation effects, characterized in that: The method comprises: Acquire water ripple diffusion animation information and water ripple display effect information, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information; Transferring the water ripple diffusion animation information to a preset animation queue; Determine the water ripple display form and water ripple display sequence information according to the water ripple display effect information; Extracting the water ripple animation information from the animation queue in sequence according to the water ripple display order information, wherein each water ripple animation information carries display duration information; Animation display is performed according to the water ripple display form, the display duration information and the water ripple animation information.
2. The animation effect control method according to claim 1, characterized in that: The step of transferring the water ripple diffusion animation information to a preset animation queue includes: Divide the animation queue into a plurality of sub-queues, and add a queue mark to each of the sub-queues; Adding a storage mark to each group of the water ripple animation information in the water ripple diffusion animation information; The queue mark of the sub-queue and the storage mark of the water ripple animation information are matched to store the water ripple animation information in the corresponding sub-queue.
3. The animation effect control method according to claim 1, characterized in that: The determining of the water ripple display form and the water ripple display sequence information according to the water ripple display effect information includes: Analyzing and processing the water ripple display effect information to obtain water ripple shape information, water ripple diffusion speed information, water ripple color information, water ripple transparency information, and water ripple sorting information; Determining the water ripple shape information, the water ripple diffusion speed information, the water ripple color information and the water ripple transparency information as the water ripple display form; The water ripple sorting information is determined as the water ripple display order information.
4. The animation effect control method according to claim 2, characterized in that: The extracting the water ripple animation information from the animation queue in sequence according to the water ripple display order information includes: Determining a display order of the water ripple animation information according to the water ripple display order information; Determining the arrangement order of the queue marks according to the display order of the water ripple animation information; The corresponding water ripple animation information is extracted from the animation queue in sequence according to the arrangement order of the queue marks.
5. The animation effect control method according to claim 3, characterized in that: The performing animation display according to the water ripple display form, the display duration information and the water ripple animation information includes: Calculate the display duration information of each water ripple animation information according to the water ripple diffusion speed information and the water ripple display sequence information; According to the water ripple display sequence information and the display duration information, the water ripple shape information, the water ripple color information and the water ripple transparency information, animation display effect control processing is performed on the water ripple animation information.
6. The animation effect control method according to claim 3, characterized in that: After performing the animation display according to the water ripple display form, the display duration information and the water ripple animation information, the method further includes: Based on a preset screen edge detection module, the arrival time of the water ripples corresponding to each group of the water ripple animation information is detected to obtain arrival time verification information; When the arrival time verification information indicates that the time at which the water ripples corresponding to each group of the water ripple animation information arrive at the screen edge detection module is consistent, controlling the animation display effect of the water ripple animation information to remain unchanged; When the arrival time verification information indicates that the time at which the water ripples corresponding to each group of the water ripple animation information arrive at the screen edge detection module is inconsistent, the water ripple display form is adjusted.
7. The animation effect control method according to claim 6, characterized in that: The adjusting process of the water ripple display form includes: The water ripple diffusion speed information is adjusted according to the time when the water ripples corresponding to the water ripple animation information reach the screen edge detection module and the display duration information.
8. An animation effect control device, characterized in that: include: A first processing module is used to obtain water ripple diffusion animation information and water ripple display effect information, wherein the water ripple diffusion animation information includes multiple groups of water ripple animation information; A second processing module, used for transferring the water ripple diffusion animation information to a preset animation queue; A third processing module is used to determine the water ripple display form and water ripple display sequence information according to the water ripple display effect information; A fourth processing module, configured to extract the water ripple animation information from the animation queue in sequence according to the water ripple display order information, wherein each water ripple animation information carries display duration information; The fifth processing module is used to perform animation display according to the water ripple display form, the display duration information and the water ripple animation information.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the animation effect control method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the animation effect control method described in any one of claims 1 to 7.