Object rendering based on color superimposing
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorXiaolu Wang
Life of this patent
Estimating the term…
Abstract
There are disclosed a method, apparatus, electronic device, and medium for rendering. The method for rendering comprises: determining colors of predetermined areas on a target object, the number of predetermined areas being at least a predetermined number, which is greater than 1; determining a target color superimposed to a target position according to the color of each predetermined area; superimposing the target color at the target position.
Claims15
A method for rendering, comprising:
- determining colors of a plurality of predetermined areas on a target object, the number of the predetermined areas being at least a predetermined number, which is greater than 1;
- determining a target color to be superimposed to a target position according to a color of each predetermined area in the plurality of predetermined areas, comprising:
- superimposing the color of each predetermined area with a first opacity on white to obtain a first color;
- adjusting a saturation of the first color to a saturation threshold range, and adjusting a brightness of the first color after adjusting the saturation to a brightness threshold range to obtain the target color;
- superimposing the color of each predetermined area with a second opacity on white to obtain a second color;
- and
- adjusting a saturation of the second color to the saturation threshold range, and adjusting a brightness of the second color after adjusting the saturation to the brightness threshold range to obtain the target color;
- wherein the second opacity is greater than the first opacity, the difference between the second opacity and the first opacity is a predetermined value, the second opacity is less than or equal to a first value, the first opacity is greater than or equal to a second value, and the first value is greater than the second value;
- and
- superimposing the target color at the target position to achieve rendering.
An electronic device, comprising:
- at least one processing unit;
- a storage unit, configured for storing at least one program;
- the at least one program, when executed by the at least one processing unit, causing the at least one processing unit to perform a method for rendering, the method comprises:
- determining colors of a plurality of predetermined areas on a target object, the number of the predetermined areas being at least a predetermined number, which is greater than 1;
- determining a target color to be superimposed to a target position according to a color of each predetermined area in the plurality of predetermined areas, comprising:
- superimposing the color of each predetermined area with a first opacity on white to obtain a first color;
- adjusting a saturation of the first color to a saturation threshold range, and adjusting a brightness of the first color after adjusting the saturation to a brightness threshold range to obtain the target color;
- superimposing the color of each predetermined area with a second opacity on white to obtain a second color;
- and
- adjusting a saturation of the second color to the saturation threshold range, and adjusting a brightness of the second color after adjusting the saturation to the brightness threshold range to obtain the target color;
- wherein the second opacity is greater than the first opacity, the difference between the second opacity and the first opacity is a predetermined value, the second opacity is less than or equal to a first value, the first opacity is greater than or equal to a second value, and the first value is greater than the second value;
- and
- superimposing the target color at the target position to achieve rendering.
A non-transitory computer-readable medium, storing a computer program which, when executed by a processing means, performs a method for rendering, the method comprises:
- determining colors of a plurality of predetermined areas on a target object, the number of the predetermined areas being at least a predetermined number, which is greater than 1;
- determining a target color to be superimposed to a target position according to a color of each predetermined area in the plurality of predetermined areas, comprising:
- superimposing the color of each predetermined area with a first opacity on white to obtain a first color;
- and
- adjusting a saturation of the first color to a saturation threshold range, and adjusting a brightness of the first color after adjusting the saturation to a brightness threshold range to obtain the target color;
- superimposing the color of each predetermined area with a second opacity on white to obtain a second color;
- and
- adjusting a saturation of the second color to the saturation threshold range, and adjusting a brightness of the second color after adjusting the saturation to the brightness threshold range to obtain the target color;
- wherein the second opacity is greater than the first opacity, the difference between the second opacity and the first opacity is a predetermined value, the second opacity is less than or equal to a first value, the first opacity is greater than or equal to a second value, and the first value is greater than the second value;
- and
- superimposing the target color at the target position to achieve rendering.
Dependencies are inferred from the claim text.