Back to results
US 12,694,597 B2Granted
Dynamic fluid display method and apparatus, electronic device, and readable medium
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorsQi Li, Xiaoqi Li
Life of this patent
Estimating the term…
Abstract
Provided are a dynamic fluid display method and apparatus, an electronic device, and a readable medium. The method includes: displaying a fluid on a user display interface; obtaining a color corresponding to each texture pixel that corresponds to the fluid; in response to a processing instruction for the fluid, determining each target texture pixel corresponding to the processing instruction; and adjusting a color of the fluid at each target texture pixel based on the processing instruction.
Claims16
A dynamic fluid display method, comprising:
- displaying a fluid on a user display interface;
- obtaining a color corresponding to each texture pixel that corresponds to the fluid;
- determining, in response to a processing instruction for the fluid, each target texture pixel corresponding to the processing instruction;
- and
- adjusting a color of the fluid at each target texture pixel based on the processing instruction,
- wherein said adjusting the color of the fluid at each target texture pixel based on the processing instruction comprises:
- determining a speed of the fluid at each target texture pixel based on the processing instruction;
- and
- adjusting, based on the speed of the fluid at each target texture pixel, the color of the fluid at the target texture pixel,
- wherein the method further comprises:
- obtaining a time stepsize for updating the speed;
- determining a first texture pixel position at a current time point based on the time stepsize, a speed corresponding to the fluid at the target texture pixel at the current time point, and a position of the target texture pixel at the current time point;
- and
- determining a color at the first texture pixel position at the current time point as a color of the fluid at the target texture pixel at a next time point.
11 more elements
An electronic device, comprising:
- one or more processors;
- and
- a memory having one or more applications stored thereon,
- wherein the one or more applications, when executed by the one or more processors, cause the electronic device to perform a dynamic fluid display method comprising:
- displaying a fluid on a user display interface;
- obtaining a color corresponding to each texture pixel that corresponds to the fluid;
- determining, in response to a processing instruction for the fluid, each target texture pixel corresponding to the processing instruction;
- and
- adjusting a color of the fluid at each target texture pixel based on the processing instruction,
- wherein said adjusting the color of the fluid at each target texture pixel based on the processing instruction comprises:
- determining a speed of the fluid at each target texture pixel based on the processing instruction;
- and
- adjusting, based on the speed of the fluid at each target texture pixel, the color of the fluid at the target texture pixel,
- wherein the method further comprises:
- obtaining a time stepsize for updating the speed;
- determining a first texture pixel position at a current time point based on the time stepsize, a speed corresponding to the fluid at the target texture pixel at the current time point, and a position of the target texture pixel at the current time point;
- and
- determining a color at the first texture pixel position at the current time point as a color of the fluid at the target texture pixel at a next time point.
15 more elements
Dependencies are inferred from the claim text.