Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
The embodiment of the specification provides a color palette generation method, which can be applied to terminal equipment and also can be applied to a server. Before or when the product interface is designed, the color palette corresponding to the text on the product interface may be generated by using the method for generating a color palette provided in the embodiment of the present specification, and then the color of the text on the product interface is selected from the generated color palette.
When a color panel is generated by using the color panel generation method provided in the embodiments of the present specification, each color on the color panel is determined using a hue value corresponding to a theme color of a target brand, a predefined saturation value, and a predefined brightness value. The contrast of the color on the color plate generated in the way and the set ground color and the purity of the color on the color plate can meet the requirements, so that the reading requirement of a user can be met, the theme color of a brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Fig. 1 is a flowchart of a first method of a method for generating a color palette according to an embodiment of the present disclosure, where the method shown in fig. 1 at least includes the following steps:
and 102, acquiring a hue value corresponding to the theme color of the target brand.
The execution main body of the color palette generation method provided by the embodiment of the specification is a color palette generation device, and the device can be applied to a mobile phone, a tablet computer, a computer and other terminal equipment, and can also be applied to a server.
The target brand refers to a brand corresponding to any product needing to generate the color palette at present, and the product can be a physical product, a network product stand, an application program and the like. The theme color of the target brand refers to the theme color of the target brand, and refers to a color which can reflect the brand identity most. If so, a plurality of colors exist on the target brand, and the color with the largest area ratio can be determined as the theme color of the target brand. For example, for coca cola, there are two colors, red and white, on the package of coca cola, however, the proportion of red is large, and thus, the color of the corresponding theme of coca cola is red; for the product of Pepsi Cola, there are three colors, blue, white and red, on its package, however, the percentage of blue is the greatest, and thus its corresponding theme color is blue.
It should be noted that, the color can be described by using hue, saturation, and brightness (HSB) modes, where H denotes hue, S denotes saturation, and B denotes brightness. That is, when the H value, B value, and S value of a color are determined, the color can be synthesized.
In one or more embodiments of the present specification, the obtaining of the hue value corresponding to the theme color of the target brand in step 102 may be implemented by the following processes:
receiving a hue value input by a user; or extracting a hue value according to a picture of a target brand input by a user.
In a specific implementation manner, when the user generates the color palette by using the method provided by the embodiment of the present specification, the hue value corresponding to the theme color of the target brand may be input on the hue value input interface. In an interface for inputting hue values, as shown in fig. 2(a), a user may input hue values of theme colors of target brands at corresponding positions on the interface shown in fig. 2(a), and the color palette generating device receives hue values input by the user through the interface.
Of course, in the embodiment of the present specification, in addition to receiving the hue value input by the user, the hue value may also be extracted according to the picture of the target brand input by the user.
In a specific implementation manner, when the user generates the color palette by using the method provided by the embodiment of the present specification, a picture of the target brand may be further input on the picture input interface, so that the picture of the target brand is sent to the color palette generation apparatus, so that the color palette generation apparatus extracts the color phase value according to the picture of the target brand.
Specifically, in this embodiment of the present specification, when the picture of the target brand is input in the picture input interface, the picture of the target brand may be obtained locally, or the picture of the target brand may be obtained from a third-party server. The embodiment of the present specification does not limit the specific source of the inputted picture of the target brand.
In this embodiment of the present specification, there may be one color or multiple colors on the picture of the target brand, and how to extract the hue value corresponding to the theme color of the target brand when there is one color and multiple colors on the picture of the target brand will be described below.
In specific implementation, if only one color exists on the picture of the target brand, the hue value extracted from the picture is directly determined as the hue value corresponding to the theme color of the target brand.
In specific implementation, if the picture of the target brand includes multiple colors, the hue value corresponding to the theme color of the target brand may be determined through the following process:
extracting hue values corresponding to a plurality of colors on the picture of the target brand; and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
In a specific embodiment, after the color palette generation device receives the picture of the target brand, the hue values of the colors in the target brand are proposed first, if a plurality of hue values are extracted, the number of pixel points corresponding to each hue value is grouped, the area ratio corresponding to each hue value is determined according to the number of pixel points corresponding to each hue value and the total number of pixel points on the picture of the target brand, and the hue value corresponding to the color with the largest area ratio is determined as the hue value corresponding to the theme color of the target brand. Of course, in the embodiments of the present specification, only two methods for obtaining hue values corresponding to the theme colors of the target brand are described above, and besides, hue values corresponding to the theme colors of the target brand may be obtained through other methods. For example, before the color palette is generated by the method provided in the embodiments of the present specification, mapping relationships between a plurality of brands and hue values may be established in advance, and when the color palette is generated by the method provided in the embodiments of the present specification, a user may directly input a name of a target brand.
Or, in some specific embodiments, a name input box and a hue value input box of the target brand may be simultaneously set on the corresponding interface, and the user may select to input the name or the hue value of the target brand according to the actual situation; alternatively, when the target brand name is input and the color palette cannot be generated, the hue value corresponding to the theme color of the target brand may be input through the hue value input box.
104, generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined brightness value is used to bring the purity of the color on the generated color plate to a second set value.
In the present illustrative embodiment, the set ground color may be white.
In the embodiment of the present specification, the saturation value and the brightness value in step 104 are determined before the method provided by the embodiment of the present specification is executed. Before the color plate is generated by using the method provided in the embodiments of the present specification, a saturation value and a brightness value meeting requirements can be determined through a large number of experiments.
The first setting value and the second setting value may be set according to an actual application scenario, and the specific values of the first setting value and the second setting value are not limited in the embodiments of this specification.
In the embodiment of the present specification, the predefined saturation value may satisfy that the contrast between the color on the generated palette and the set ground color reaches a set value, so that the user can clearly see the text on the product interface when reading, that is, the reading requirement of the user can be satisfied; in addition, the predefined brightness value can meet the requirement that the purity on the generated color plate reaches a second set value, so that the generated color can embody the theme color of the brand by combining the predefined brightness value with the hue value, and the brand identity of the brand is highlighted.
In a specific embodiment, the saturation value may include at least one of the following: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value may include at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
That is, in the embodiment of the present specification, if the saturation value is 100, the corresponding brightness value is 0; if the saturation value is 99, the corresponding brightness value is 1; if the saturation value is 96, the corresponding brightness value is 1; if the saturation value is 94, the corresponding saturation value is 2; the saturation values and the brightness values are combined one by one in this order, which is not further listed here.
Of course, the above lists only some possible values of the saturation value and the brightness value, and the values of the saturation value and the brightness value are not limited to these values.
In this embodiment of the present specification, the value of the predefined saturation value may be one or more, and the value of the predefined brightness value may be one or more;
correspondingly, in the step 104, a color palette corresponding to the characters on the product interface of the target brand is generated according to the hue value, the predefined saturation value and the predefined brightness value, and the method specifically includes the following steps (1) and (2);
combining the hue value, the saturation value and the brightness value according to a set combination relation to obtain at least one color; wherein, the corresponding relation between the saturation value and the brightness value is stored in the combination relation;
and (2) generating the color plate according to the obtained at least one color.
In a specific embodiment, the number of specific values of the predefined saturation value is equal to the number of specific values of the predefined brightness value. For example, if there are three predefined saturation values, then correspondingly, there need to be three predefined brightness values; if there are ten predefined saturation values, the corresponding number of predefined luminance values is also ten.
It should be noted that the hue value corresponding to the acquired theme color of the target brand has only one numerical value, and therefore, when the hue value, the predefined saturation value and the predefined brightness value are combined, only the predefined saturation value and the predefined brightness value need to be considered to be combined according to a set combination relationship. For example, in one embodiment, if the preset combination relationship stores the correspondence between the saturation value and the brightness value, the predefined saturation value and the predefined brightness value are combined according to the correspondence to obtain a plurality of combinations of the saturation value and the brightness value, and then the brightness value and the combinations of each of the saturation value and the brightness value are combined to obtain a plurality of colors.
Specifically, in one embodiment, the above combination relationship may be characterized in a table form, and one possible combination relationship is shown in table 1.
Of course, in table 1, only a few possible values of the saturation value and the brightness value are listed, in the corresponding relationship shown in table 1, if the saturation value is 100, the corresponding brightness value is 0, if the saturation value is 99, the corresponding brightness value is 1, and so on.
In this way, in the step (1), when each color is obtained, the saturation value and the luminance value may be combined according to the correspondence relationship shown in table 1.
TABLE 1
Value of saturation
|
Brightness value
|
100
|
0
|
99
|
1
|
96
|
1
|
94
|
2
|
85
|
5 |
Of course, in the step (1), when combining the hue value, the saturation value and the brightness value, any two of the three may be combined first, and then combined with another one, and all possible situations of the above combination are not listed.
After each color is obtained in the step (1), the color plate can be obtained by determining each color as the color on the color plate, that is, according to each color obtained in the step (1).
Of course, in this embodiment of the present disclosure, a predefined saturation value and a predefined brightness value may also be stored according to a set corresponding relationship, so that after a hue value of a theme color of a target brand is obtained, the obtained hue value and the corresponding relationship between the saturation value and the brightness value are directly combined to obtain each color.
In the embodiment of the present specification, the number of obtained colors, the number of values of saturation values, and the number of values of brightness values are equal to each other. For example, if the saturation values are 3, and correspondingly, the brightness values are also three, the number of generated colors is also three.
In the step (2), if there are a plurality of obtained colors, the obtained colors may be sorted according to the shades of the colors, and the color palette may be generated in the order of the sorted colors. If the number of the obtained colors is one, the color can be directly determined as the color of the color plate.
In order to facilitate understanding of the color plate generation method provided in the embodiments of the present specification, the generated color plate will be described below by way of example. For example, if the target brand is coca-cola, the schematic diagram of the color plate generated by the method provided in the embodiment of the present specification is shown in fig. 3. In the case shown in fig. 3, the generated color palette comprises ten colors, and in the case shown in fig. 3, the hexadecimal color code corresponding to each color is marked accordingly.
Specifically, in fig. 3, the hexadecimal code corresponding to each color on the color palette represents the color at the corresponding position, specifically, the color represented by the hexadecimal code may be queried by using an existing tool, and the description of the color represented by each hexadecimal code is omitted here.
According to the method for generating the color palette provided by the embodiment of the specification, the color palette corresponding to the characters on the product interface of the target brand is generated according to the hue value corresponding to the theme color of the target brand, the predefined saturation value and the predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Based on the color palette generation method shown in fig. 1 to fig. 3, an embodiment of the present specification further provides a color palette generation method, fig. 4 shows a second method flowchart of the color palette generation method provided in the embodiment of the present specification, and for the method shown in fig. 4, a difference from the method shown in fig. 1 to fig. 3 is mainly introduced, and the same points may refer to the description of fig. 1 to fig. 3, and are not repeated here. The method as shown in fig. 4, at least comprises the following steps:
step 402, receiving a hue value input by a user; and the hue value is the hue value corresponding to the theme color of the target brand.
The execution main body of the color palette generation method provided by the embodiment of the specification is a color palette generation device, and the device can be applied to a mobile phone, a tablet computer, a computer and other terminal equipment, and can also be applied to a server.
Step 404, combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
It should be noted that the specific implementation process of the above step 402 and step 404 is the same as the specific implementation process of the embodiment shown in fig. 1 to fig. 3, and the specific implementation steps may refer to the description of the embodiment shown in fig. 1 to fig. 3, and are not described again here.
In a specific embodiment, the saturation value may include at least one of the following: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value may include at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
That is, in the embodiment of the present specification, if the saturation value is 100, the corresponding brightness value is 0; if the saturation value is 99, the corresponding brightness value is 1; if the saturation value is 96, the corresponding brightness value is 1; if the saturation value is 94, the corresponding saturation value is 2; the saturation values and the brightness values are combined one by one in this order, which is not further listed here.
Of course, the above lists only some possible values of the saturation value and the brightness value, and the values of the saturation value and the brightness value are not limited to these values.
In order to facilitate understanding of the method for generating a color plate provided in the embodiments of the present disclosure, the following description will be given by way of example.
For example, the target brand may be coca-cola, with the color of the subject of the coca-cola brand being red. Fig. 5 is a flowchart illustrating a third method of a method for generating a color palette according to an embodiment of the present disclosure, where the method illustrated in fig. 5 at least includes the following steps:
step 502, receiving a hue value input by a user.
The user may input a hue value corresponding to the theme color of the coca-cola brand on the hue value input interface, and the hue value input by the user may be # ED1C16 because the theme color of the coca-cola brand is red.
And step 504, combining the predefined saturation value and the brightness value according to the set combination relation.
Wherein, the set combination relation stores the corresponding relation between the saturation value and the brightness value.
Step 506, combining the received hue value with the combination relationship between each saturation value and the brightness value to obtain each color.
The number of values of the predefined saturation value is equal to the number of values of the predefined brightness value, and the number of colors obtained in step 506 is equal to the number of saturation values or the number of brightness values.
That is, in the embodiments of the present specification, the number of predefined saturation values, the number of predefined luminance values, and the number of resulting colors are equal.
And step 508, arranging the obtained colors according to a set rule to generate a color palette.
In the embodiments of the present specification, the color plates may be obtained by sorting the colors in order of color shades.
Also for example, the target brand is ant blouse, and the theme color corresponding to the ant blouse brand is blue. Fig. 6 shows a fourth method flowchart of a method for generating a color palette provided in an embodiment of the present specification. The method shown in fig. 6, at least comprises the following steps:
step 602, receiving an ant golden suit brand picture input by a user.
And step 604, extracting the hue value corresponding to the theme color of the ant golden suit brand from the ant golden suit brand picture.
And 606, combining the extracted hue value with a predefined saturation value and a predefined brightness value according to a set combination relation to obtain each color.
In step 606, the number of the obtained colors is equal to the number of the predefined saturation values and the number of the predefined brightness values.
And 608, arranging the obtained colors according to a set rule to generate a color plate.
In the embodiments of the present specification, the colors may be sorted in order of color depth to obtain a color palette.
Specifically, in the embodiment shown in fig. 6, a specific schematic diagram of the resulting color plate is shown in fig. 7. In the case shown in fig. 7, the generated color palette includes ten colors, and in the case shown in fig. 7, the hexadecimal color code corresponding to each color is correspondingly marked.
Specifically, in fig. 7, the hexadecimal code corresponding to each color on the color palette represents the color at the corresponding position, specifically, the color represented by the hexadecimal code may be queried by using an existing tool, and the description of the color represented by each hexadecimal code is omitted here.
According to the method for generating the color palette provided by the embodiment of the specification, the color palette corresponding to the characters on the product interface of the target brand is generated according to the hue value corresponding to the theme color of the target brand, the predefined saturation value and the predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Based on the method for generating a color palette provided in the embodiment of the present specification, an embodiment of the present specification further provides a device for generating a color palette, which is used to execute the method for generating a color palette provided in the embodiment of the present specification, where the device may be applied to a server or may be applied to a terminal device, fig. 8 is a schematic diagram of a first module composition of the device for generating a color palette provided in the embodiment of the present specification, and the device shown in fig. 8 includes:
an obtaining module 801, configured to obtain a hue value corresponding to a theme color of a target brand;
a first generating module 802, configured to generate a color palette corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value, and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Optionally, the predefined saturation values take one or more values, and the predefined brightness values take one or more values;
accordingly, the first generating module 802 includes:
a combination unit for combining the hue value, the saturation value and the brightness value according to a set combination relationship to obtain at least one color; wherein, the corresponding relation between the saturation value and the brightness value is stored in the combination relation;
and a generating unit configured to generate the color palette based on the obtained at least one color.
Optionally, the saturation value includes at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
Optionally, the obtaining module 801 includes:
a receiving unit which receives a hue value input by a user;
or,
and the extraction unit is used for extracting the hue value according to the picture of the target brand input by the user.
Optionally, the extracting unit is specifically configured to:
extracting hue values corresponding to the multiple colors on the picture of the target brand respectively; and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Based on the method for generating a color palette provided in the embodiment of the present specification, an embodiment of the present specification further provides a device for generating a color palette, which is used to execute the method for generating a color palette provided in the embodiment of the present invention, where the device may be applied to a terminal device or may be applied to a server, fig. 9 is a schematic diagram of a second module composition of the device for generating a color palette provided in the embodiment of the present specification, and the device shown in fig. 9 includes:
a receiving module 901, configured to receive a hue value input by a user; wherein, the hue value is the hue value corresponding to the theme color of the target brand;
a second generating module 902, configured to combine the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship, and generate a color palette corresponding to a character on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
Optionally, the saturation value includes at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Further, based on the methods shown in fig. 1 to fig. 7, an embodiment of the present specification further provides a color plate generation apparatus, as shown in fig. 10.
The apparatus for generating the color palette may have a large difference due to different configurations or performances, and may include one or more processors 1001 and a memory 1002, and the memory 1002 may store one or more stored applications or data. Memory 1002 may be, among other things, transient storage or persistent storage. The application program stored in memory 1002 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in the device for generating the color palette. Still further, the processor 1001 may be configured to communicate with the memory 1002 to execute a series of computer-executable instructions in the memory 1002 on a color panel generation device. The apparatus for generating the palette can also include one or more power supplies 1003, one or more wired or wireless network interfaces 1004, one or more input-output interfaces 1005, one or more keyboards 1006, and the like.
In a particular embodiment, the apparatus for generating a color palette comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the apparatus for generating a color palette, and the one or more programs configured to be executed by one or more processors comprise computer-executable instructions for:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Optionally, when executed, the computer-executable instructions may cause the predefined saturation value to take one or more values, and the predefined brightness value to take one or more values;
generating a color palette corresponding to the characters on the product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value, including:
combining the hue value, the saturation value and the brightness value according to a set combination relationship to obtain at least one color; wherein, the combination relation stores the corresponding relation between the saturation value and the brightness value;
and generating the color plate according to the obtained at least one color.
Optionally, the computer executable instructions, when executed, comprise at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
Optionally, when executed, the obtaining a hue value corresponding to a theme color of the target brand includes:
receiving a hue value input by a user;
or,
and extracting the hue value according to the picture of the target brand input by the user.
Optionally, when executed, the computer executable instructions may cause the apparatus to perform the steps of, if the picture of the target brand includes a plurality of colors;
the extracting the hue value according to the picture of the target brand input by the user includes:
extracting hue values corresponding to the multiple colors on the picture of the target brand respectively;
and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
In a particular embodiment, the apparatus for generating a color palette comprises a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may comprise one or more modules, and each module may comprise a series of computer-executable instructions for the apparatus for generating a color palette, and the one or more programs configured to be executed by one or more processors comprise computer-executable instructions for:
receiving a hue value input by a user; wherein, the hue value is the hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
Optionally, the computer executable instructions, when executed, comprise at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
The color palette generating device provided in the embodiment of the present specification generates a color palette corresponding to characters on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
Further, based on the methods shown in fig. 1 to fig. 7, in a specific embodiment, the storage medium is a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer-executable instructions that, when executed by the processor, implement the following processes:
obtaining a hue value corresponding to a theme color of a target brand;
generating a color plate corresponding to characters on a product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used to bring the purity of the color on the generated color plate to a second set value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the predefined saturation values to take on one or more values and the predefined brightness values to take on one or more values;
generating a color palette corresponding to the characters on the product interface of the target brand according to the hue value, the predefined saturation value and the predefined brightness value, including:
combining the hue value, the saturation value and the brightness value according to a set combination relationship to obtain at least one color; wherein, the combination relation stores the corresponding relation between the saturation value and the brightness value;
and generating the color plate according to the obtained at least one color.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the saturation value to include at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
Optionally, when executed by a processor, the obtaining a hue value corresponding to a theme color of the target brand includes:
receiving a hue value input by a user;
or,
and extracting the hue value according to the picture of the target brand input by the user.
Optionally, when executed by a processor, the storage medium stores computer-executable instructions for, if the picture of the target brand includes a plurality of colors;
the extracting the hue value according to the picture of the target brand input by the user includes:
extracting hue values corresponding to various colors on the picture of the target brand respectively;
and determining a hue value corresponding to the theme color of the target brand from a plurality of hue values according to the area ratio of each color on the picture of the target brand.
When executed by a processor, the computer-executable instructions stored in the storage medium provided in the embodiments of the present specification generate a palette corresponding to a text on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast between the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the color plate is more convenient to generate and simple to operate.
Further, the embodiments of the present specification also provide a storage medium for storing computer-executable instructions, and in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer-executable instructions that, when executed by a processor, implement the following processes:
receiving a hue value input by a user; wherein, the hue value is the hue value corresponding to the theme color of the target brand;
combining the hue value with a predefined saturation value and a predefined brightness value according to a set combination relationship to generate a color plate corresponding to characters on a product interface of the target brand; wherein the predefined brightness value is used for enabling the contrast of the color on the generated color plate and the set background color to reach a first set value; the predefined saturation value is used for enabling the purity of the color on the generated color plate to reach a second set value; the combination relationship stores a corresponding relationship between the saturation value and the brightness value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the saturation value to include at least one of: 100. 99, 96, 94, 85, 75, 55, 35, 15 and 0;
the luminance value includes at least one of: 0. 1, 2, 5, 15, 25, 45, 65 and 0;
wherein the saturation values and the luminance values are combined in a one-to-one correspondence in the listed order.
When executed by a processor, the computer-executable instructions stored in the storage medium provided in the embodiments of the present specification generate a palette corresponding to a text on a product interface of a target brand according to a hue value corresponding to a theme color of the target brand, a predefined saturation value, and a predefined brightness value; when the color plate corresponding to the characters is generated, the brightness value, the saturation value and the hue value of the target brand are all taken into consideration, so that the contrast of the color on the generated color plate and the set ground color and the purity of the color on the color plate can meet the requirements, the reading requirement of a user can be met, the theme color of the brand can be embodied, and the perception of the user on the theme color of the brand is improved; in addition, the method provided by the embodiment of the specification realizes automatic generation of the color plate, so that the generation of the color plate is more convenient, and the operation is simple.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, 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.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only an example of the present disclosure, and is not intended to limit the present disclosure. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.