Color display method, device, electronic device and readable medium

By pre-generating the hue map when the application software is started and the target color is directly determined from the pre-generated map, the hardware calculation problem caused by the HSB mode color display is solved, which improves the display efficiency and avoids lag.

CN113986176BActive Publication Date: 2024-11-08TENCENT CLOUD COMPUTING (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111274383.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-11-08
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

When displaying the HSB mode color in the prior art, the mobile phone hardware calculation and rendering are too heavy, and there may be problems of lag or crash.

Method used

When the application software is first started, multiple hue pictures are pre-generated, and the target color in the target hue picture is directly determined according to the user's selection operations, avoiding real-time hardware calculation and rendering.

Benefits of technology

Improves the efficiency of color display, reduces hardware load, avoids lag and crashes, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986176B_ABST
    Figure CN113986176B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose a color display method, device, electronic device and readable medium, the method receiving a first selection operation of a user in a color selection interface of application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; a target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the respective corresponding first color parameters; a target color in the target hue diagram is determined based on the user's second selection operation on the target hue diagram; and the target color is displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a color display method, device, electronic device and computer-readable medium. Background Art

[0002] Color mode is a model that expresses a certain color in digital form, or a way to record the color of an image. It can be divided into: RGB mode, CMYK mode, HSB mode, Lab color mode, etc.

[0003] In the HSB mode, H stands for hue, S stands for saturation, and B stands for brightness. The medium corresponding to the HSB mode is the human eye. The higher the values ​​of S and B, the higher the saturation and brightness, and the stronger and more vivid the colors presented.

[0004] In the prior art, for example, when using mobile phone software to display colors in HSB mode, the user enters values ​​in the HSB color parameter setting window in the software interface, and the mobile phone calculates and renders based on the entered color parameters to display the color corresponding to the color parameters.

[0005] However, this method requires the phone to perform a lot of calculations and rendering each time a color is displayed, and has high requirements for hardware such as the processor. When operated frequently, it may cause lag or freeze. Summary of the invention

[0006] In view of this, the embodiments of this specification provide a color display method, device, equipment and computer-readable medium to accelerate the processing efficiency of hardware, improve the display speed, and avoid problems such as freezing or freezing.

[0007] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0008] A color selection method provided in an embodiment of this specification includes:

[0009] Receiving a first selection operation of a user in a color selection interface of an application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;

[0010] A target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;

[0011] determining a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram;

[0012] The target color is displayed.

[0013] A color display device provided in an embodiment of the present specification includes:

[0014] A receiving device, used for receiving a first selection operation of a user in a color selection interface of an application software; the color selection interface displays a hue diagram generated based on a first color parameter; the first color parameter is a hue parameter;

[0015] A first processing device is used to obtain a target hue diagram based on a first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on a second color parameter and a third color parameter under the first color parameter corresponding to the respective hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;

[0016] a second processing device, configured to determine a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram;

[0017] A display device is used to display the target color.

[0018] The embodiment of the present specification provides a page construction device including a target component, including:

[0019] at least one processor; and,

[0020] a memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0022] Receiving a first selection operation of a user in a color selection interface of an application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;

[0023] A target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;

[0024] determining a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram;

[0025] The target color is displayed.

[0026] An embodiment of the present specification provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement a color display method provided by an embodiment of the present specification.

[0027] An embodiment of the present specification can at least achieve the following beneficial effects: when the application software is first started, multiple hue diagrams are created, and according to the user's first selection operation in the color selection interface, a target hue diagram matching the first color parameter corresponding to the first selection operation in the multiple hue diagrams can be obtained, so that the target color is determined according to the user's second selection operation in the target hue diagram, and then the target color is displayed. The hardware running the application software does not need to calculate, but only needs to find the display target color. Even if the operation is very frequent, there will be no freeze or freeze, which saves hardware overhead and improves the efficiency of color display. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0029] Figure 1 A flowchart of a color display method provided in an embodiment of this specification.

[0030] Figure 2 It is a schematic diagram of an operation interface in a color display method provided in an embodiment of the present invention.

[0031] Figure 3 A structural schematic diagram of adjusting a third color parameter of a target color in a color selection method provided by an embodiment of the present invention.

[0032] Figure 4 The embodiments of this specification provide corresponding to Figure 1 A structural schematic diagram of a color selection device.

[0033] Figure 5 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION

[0034] Mobile phone applications can use color palettes, color charts, or label bars with input parameters to allow users to select or define colors. For HSB mode colors, the current common method is to drag the hue selection bar to select the hue, drag the saturation selection bar to select the saturation, and finally drag the brightness selection bar to adjust the brightness. However, this method is prone to freezes or crashes in mobile phone apps.

[0035] In view of this, the color display method provided by the embodiment of the present invention can reduce the cost of mobile phone hardware, improve the color display speed, and improve the operating efficiency of mobile phone hardware. The embodiment of the present invention is mainly used in the color display method under the HSB (hue:h, saturation:s, brightness:b) mode color. Among them, in the HSB color mode, H is the hue parameter, which is the basic attribute of color, such as red, yellow, etc., and the value range is 0-360, S is the saturation parameter, which refers to the vividness of the color; the higher the more vivid; the value range is 0-110%, B is the brightness, which refers to the brightness of the color; the higher the brighter the color; the value range is 0-100%.

[0036] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.

[0037] It should be understood that although the terms first, second, third, etc. may be used in this application document to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.

[0038] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0039] Figure 1A flowchart of a color display method provided in an embodiment of this specification.

[0040] Figure 2 It is a schematic diagram of an operation interface in a color display method provided in an embodiment of the present invention.

[0041] Figure 2 The figure below is a schematic diagram of the operation interface after the mobile phone application is opened.

[0042] Among them, the application software may include a color selection interface 20, and the color selection interface 20 may specifically include a color selection area 201 and a color display area 202. The color selection area 201 may include a hue picture. Among them, the hue parameters of 2021, 2022, 2023, 2024, and 2025 are different. Of course, 2021, 2022, 2023, 2024, and 2025 are only schematic diagrams, and do not mean that only one color is included. Any area of ​​2021, 2022, 2023, 2024, and 2025 may include multiple colors corresponding to different hue parameters.

[0043] See also Figure 1 and Figure 2 , an embodiment of the present invention discloses a color display method, comprising:

[0044] S101, receiving a first selection operation of a user in a color selection interface of an application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter.

[0045] The first selection operation may correspond to different operation modes according to different controls set in the color selection interface. The color selection interface may include a color selection area and a color display area. The color selection area may include a color palette or a hue chart.

[0046] In the embodiment of the present invention, the receiving of the first selection operation of the user in the color selection interface of the application software specifically includes:

[0047] Receiving a click operation by a user to select a color in the color selection area;

[0048] Determine a hue parameter corresponding to the click operation;

[0049] The target hue diagram corresponding to the hue parameter is displayed in the color display area.

[0050] The first selection operation may be a click operation, a double-click operation, a circle operation, etc. in the color selection area.

[0051] In the embodiment of the present invention, a hue diagram may be displayed in the color selection area, wherein the hue diagram is generated based on the hue parameters. The hue diagram initially displayed in the color selection interface may include all hue parameters.

[0052] The user can click in the color selection area to select the color to be displayed. The hue parameter corresponding to the coordinate position of the selector on the hue diagram can be obtained to obtain the target hue diagram.

[0053] In the embodiment of the present invention, the receiving of the first selection operation of the user in the color selection interface of the application software specifically includes:

[0054] receiving a hue parameter input by a user in the color selection area;

[0055] The target hue diagram corresponding to the hue parameter is displayed in the color display area.

[0056] The color selection area may be a control with an input box, and the first selection operation may be to input a value corresponding to the color parameter in the input box, so as to obtain a target hue diagram according to the hue parameter.

[0057] S102. Obtain a target hue diagram based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponding to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the respective corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter.

[0058] In the embodiment of the present invention, a corresponding first color parameter may be determined based on the first selection operation, and a target hue diagram may be obtained through the first color parameter.

[0059] In order to reduce the load on the hardware, multiple hue maps can be created when the application software is started for the first time. The first start can be based on the first start mark or directly trigger step 101 when it is started for the first time. Among them, each hue map can be generated based on the hue parameter, that is, each hue map is a hue map generated by various brightness parameters and various saturation parameters under a certain hue parameter. Among them, for each hue parameter, taking the hue parameter of 0.5 as an example, the color of the pixel point in the upper right corner of the generated hue map is hue parameter 0.5, saturation parameter 0, brightness parameter 1, the hue is kept unchanged from right to left, the saturation parameter increases from 0 to 1, and the brightness parameter decreases from 1 to 0 from top to bottom. Of course, when the hue parameter is other, this generation method can also be used.

[0060] Of course, it is also possible to keep the hue unchanged from right to left, reduce the saturation parameter from 1 to 0, and reduce the brightness parameter from 1 to 0 from bottom to top. Other creation rules are also possible, as long as the hue diagram under each hue parameter can be displayed.

[0061] The step of obtaining a target hue diagram based on the first color parameter corresponding to the first selection operation specifically includes:

[0062] determining a first color parameter corresponding to the first operation;

[0063] Using the first color parameter as a search condition, searching for the file names of a plurality of the hue images;

[0064] The hue map that matches the first color parameter with the file name is used as a target hue map.

[0065] In an embodiment of the present invention, a target hue map can be determined according to the first color parameter corresponding to the first selection operation. The target hue map is one of the multiple hue maps created when the application software is first started and corresponds to the first color parameter. The value of the first color parameter may be matched with an identifier of the hue map, the identifier may specifically be a file name, and the match may be a regular expression match. The target hue map may also be determined by searching according to a pre-established correspondence table, in which the correspondence between the first color parameter and the file name of the hue map is stored, and the target hue map is determined by the correspondence.

[0066] S103: Determine a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram.

[0067] In the embodiment of the present invention, after determining the target hue diagram, the user can perform a second selection operation on the target hue diagram, and the second selection operation can determine the target color in the target hue diagram, wherein the target color is the color displayed in the target hue diagram.

[0068] When the target hue diagram is determined, it can be displayed in the color display area. The second selection operation can be a selection operation in the color display area, which can be a touch operation such as a single click operation or a double click operation, or an input operation of inputting a value corresponding to a color parameter in an input box.

[0069] The target color in the target hue diagram may be determined according to the second operation, wherein the target color may be the color presented by the image in the hue diagram, and the color parameters of the target color may be the hue parameters corresponding to the target hue diagram and the brightness parameters and saturation parameters of the region where the target color is located.

[0070] Determining the target color in the target hue diagram based on the user's second selection operation on the target hue diagram specifically includes:

[0071] Determining the coordinates of a selection point where the user performs a second selection operation in the color display area;

[0072] The target color is determined based on the pixels of the target hue map and the coordinates of the selected points.

[0073] In the embodiment of the present invention, the target color can be obtained by calculating the corresponding saturation parameter and brightness parameter based on the corresponding coordinates of the selector on the target hue diagram, and then adding the hue parameter.

[0074] In actual use, for example: the hue parameter is 0, the target hue map is 300 pixels long and 200 pixels high, and the selected point position is (x: 150 pixels, y: 100 pixels), then the HSB color parameters of the determined target color are (0, 0.5, 0.5).

[0075] S104: Display the target color.

[0076] After the target color is determined, the target color can be displayed. Of course, the area displaying the target color can be a color selection area, a color display area, or other display areas specifically used to display the target color. It can also be a sub-area in the color display area.

[0077] Displaying the target color may specifically be displaying a picture of the target color in the target hue diagram.

[0078] In an embodiment of the present invention, each hue diagram can be divided into multiple sub-areas, and the division range of each sub-area can correspond to different ranges according to the degree of color change. Each sub-area can correspond to a different target color, and the sub-area can correspond to a color parameter. Specifically, there can be a sub-area corresponding to a hue parameter, a brightness parameter, and a saturation parameter, and the picture at each sub-area is used to display the color corresponding to the color parameter of the sub-area.

[0079] Displaying the target color may specifically include: determining a sub-region of the target hue diagram where the target color is located, cropping pixels of the sub-region according to a pixel size of the display interface, and displaying the cropped sub-region in the display interface.

[0080] It can be seen from the above embodiments that the embodiments of the present invention provide a color display method, which can pre-generate a hue diagram corresponding to all colors when the APP is started for the first time, and directly determine the color to be displayed in the hue diagram according to the user's operation. No hardware calculation is required, only display is required, which greatly reduces the operating efficiency of the mobile phone hardware and improves the display efficiency, so that users can use the application software without lag, thereby improving the user experience.

[0081] In the above-mentioned embodiment, the pre-generation of the hue map is introduced. The generation process of the hue map is introduced below.

[0082] Figure 3 It is a schematic diagram of a process of generating a hue diagram in a color display method provided in an embodiment of the present invention.

[0083] The generation process of the multiple hue maps includes:

[0084] S301, determining the hue parameters of the hue diagram to be generated, triggered by the first startup of the application software;

[0085] S302, executing a hue diagram generation step for each hue parameter.

[0086] The steps of generating a hue map specifically include:

[0087] Obtain the pixel parameter corresponding to the hue parameter;

[0088] According to the pixel parameters, determine the brightness parameter and saturation parameter of each pixel under the pixel parameters;

[0089] A hue diagram under the pixel parameters is generated according to the hue parameter, the brightness parameter and the saturation parameter.

[0090] In the embodiment of the present invention, when the application software is triggered for the first time, the step of generating a hue map is executed.

[0091] The first time the application software is triggered can be when the application software is first run after installation, when the HSB color mode function in the application software is first started, or when the application software is automatically started each time. When the application software is closed, the multiple hue images generated by this triggering can be cleared to save storage space.

[0092] In an embodiment of the present invention, when the application software is triggered for the first time, the hue parameters of the generated hue map required can be determined according to the preset generation rules. The generation rules may include the accuracy of the hue parameters and the pixel size of the generated hue map, and hue maps of different pixel sizes can be generated according to different hue parameters. The number of hue parameters can be set according to actual needs, and the default value is all hue values.

[0093] For each hue parameter, the pixel parameter corresponding to the hue parameter is obtained, and the brightness parameter and saturation parameter of each point under the pixel parameter are determined according to the pixel parameter, and a hue diagram corresponding to the hue parameter is generated.

[0094] According to the generation steps, multiple hue maps are generated for display when displaying colors.

[0095] In the embodiment of the present invention, a hue map can be generated in advance when the application software is started for the first time, so that hardware calculation and rendering are not required when displaying colors, thus saving hardware resources and improving display efficiency.

[0096] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 4 The embodiments of this specification provide corresponding to Figure 1 A schematic diagram of the structure of a color display device. Figure 4 As shown, the device may include:

[0097] The receiving device 401 is used to receive a first selection operation of a user in a color selection interface of an application software; the color selection interface displays a hue diagram generated based on a first color parameter; the first color parameter is a hue parameter;

[0098] The first processing device 402 is used to obtain a target hue diagram based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;

[0099] The second processing means 403 is used to determine the target color in the target hue diagram based on the second selection operation of the user on the target hue diagram;

[0100] The display device 404 is used to display the target color.

[0101] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.

[0102] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

[0103] Figure 5The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of an electronic device. Figure 5 As shown, the electronic device 500 may include:

[0104] at least one processor 510; and,

[0105] A memory 530 in communication with the at least one processor; wherein,

[0106] The memory 530 stores instructions 520 executable by the at least one processor 510. The instructions are executed by the at least one processor 510 to enable the at least one processor 510 to:

[0107] Receiving a first selection operation of a user in a color selection interface of an application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;

[0108] A target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;

[0109] determining a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram;

[0110] The target color is displayed.

[0111] Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the following method:

[0112] Receiving a first selection operation of a user in a color selection interface of an application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;

[0113] A target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;

[0114] determining a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram;

[0115] The target color is displayed.

[0116] The above describes specific embodiments of the present specification. 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 drawings do not necessarily require 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.

[0117] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other.

[0118] The devices, electronic devices and methods provided in the embodiments of this specification correspond to each other, and therefore, the devices and electronic devices 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 devices and equipment will not be repeated here.

[0119] 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 know 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.

[0120] 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.

[0121] 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.

[0122] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0123] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take 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.) containing computer-usable program code.

[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.

[0125] 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.

[0126] 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 The steps for the functions specified in one or more boxes.

[0127] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0128] 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.

[0129] 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.

[0130] 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.

[0131] 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. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0132] 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 color display method, characterized in that: include: Receiving a first selection operation of the user in the color selection interface of the application software; The color selection interface displays a hue diagram generated based on the first color parameter; The first color parameter is a hue parameter; A target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter; determining a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram; Displaying the target color; The creation process of the multiple hue maps includes: determining the hue parameters of the hue maps to be generated according to preset generation rules; the preset generation rules include the accuracy of the hue parameters and the pixel size of the generated hue map; for each hue parameter, obtaining the pixel parameter corresponding to the hue parameter, determining the brightness parameter and saturation parameter of each point under the pixel parameter according to the pixel parameter, and generating the hue map corresponding to the hue parameter to obtain the hue map corresponding to each hue parameter; each of the hue maps is divided into multiple sub-areas, and the division range of each sub-area can correspond to different ranges according to different degrees of color change; each of the sub-areas corresponds to different target colors; The step of obtaining a target hue diagram based on the first color parameter corresponding to the first selection operation specifically includes: Determining a first color parameter corresponding to the first selection operation; Using the first color parameter as a search condition, searching for the file names of the plurality of hue images in a correspondence table; the correspondence table stores the correspondence between the first color parameter and the files of the plurality of hue images; The hue map that matches the first color parameter with the file name is used as a target hue map.

2. The method according to claim 1, characterized in that: The color selection interface specifically includes a color selection area and a color display area.

3. The method according to claim 2, characterized in that The receiving of the first selection operation of the user in the color selection interface of the application software specifically includes: Receiving a click operation by a user to select a color in the color selection area; Determine a hue parameter corresponding to the click operation; The target hue diagram corresponding to the hue parameter is displayed in the color display area.

4. The method according to claim 2, characterized in that: The receiving of the first selection operation of the user in the color selection interface of the application software specifically includes: receiving a hue parameter input by a user in the color selection area; The target hue diagram corresponding to the hue parameter is displayed in the color display area.

5. The method according to claim 3 or 4, characterized in that: Determining the target color in the target hue diagram based on the user's second selection operation on the target hue diagram specifically includes: Determining the coordinates of a selection point where the user performs a second selection operation in the color display area; The target color is determined based on the pixels of the target hue map and the coordinates of the selected points.

6. The method according to claim 2, characterized in that The displaying of the target color specifically includes: The target color is displayed in the color display area.

7. The method according to claim 1, characterized in that The generation process of the multiple hue maps includes: Taking the first startup of the application software as a trigger, determining the hue parameters of the hue diagram to be generated; For each hue parameter execute: Obtain the pixel parameter corresponding to the hue parameter; According to the pixel parameters, determine the brightness parameter and saturation parameter of each pixel under the pixel parameters; A hue diagram under the pixel parameters is generated according to the hue parameter, the brightness parameter and the saturation parameter.

8. A color display device, characterized in that: include: A receiving device, used for receiving a first selection operation of a user in a color selection interface of an application software; The color selection interface displays a hue diagram generated based on a first color parameter; the first color parameter is a hue parameter; a first processing device, for obtaining a target hue diagram based on a first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponding to the first color parameter; the first color parameter of each hue diagram is different, and each hue diagram is a hue diagram generated based on a second color parameter and a third color parameter under the first color parameter corresponding to the respective hue diagrams; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter; a second processing device, configured to determine a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram; A display device, used to display the target color; The creation process of the multiple hue maps includes: determining the hue parameters of the hue maps to be generated according to preset generation rules; the preset generation rules include the accuracy of the hue parameters and the pixel size of the generated hue map; for each hue parameter, obtaining the pixel parameter corresponding to the hue parameter, determining the brightness parameter and saturation parameter of each point under the pixel parameter according to the pixel parameter, and generating the hue map corresponding to the hue parameter to obtain the hue map corresponding to each hue parameter; each of the hue maps is divided into multiple sub-areas, and the division range of each sub-area can correspond to different ranges according to different degrees of color change; each of the sub-areas corresponds to different target colors; The step of obtaining a target hue diagram based on the first color parameter corresponding to the first selection operation specifically includes: Determining a first color parameter corresponding to the first selection operation; Using the first color parameter as a search condition, searching for the file names of the plurality of hue images in a correspondence table; the correspondence table stores the correspondence between the first color parameter and the files of the plurality of hue images; The hue map that matches the first color parameter with the file name is used as a target hue map.

9. An electronic device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Receiving a first selection operation of a user in a color selection interface of an application software; a hue diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter; A target hue diagram is obtained based on the first color parameter corresponding to the first selection operation; the target hue diagram is one of the multiple hue diagrams created when the application software is first started and corresponds to the first color parameter; the first color parameter of each hue diagram is different from the first color parameter of another hue diagram, and each hue diagram is a hue diagram generated based on the second color parameter and the third color parameter under the first color parameter corresponding to each hue diagram; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter; determining a target color in the target hue diagram based on a second selection operation of the user on the target hue diagram; Displaying the target color; The creation process of the multiple hue maps includes: determining the hue parameters of the hue maps to be generated according to preset generation rules; the preset generation rules include the accuracy of the hue parameters and the pixel size of the generated hue map; for each hue parameter, obtaining the pixel parameter corresponding to the hue parameter, determining the brightness parameter and saturation parameter of each point under the pixel parameter according to the pixel parameter, and generating the hue map corresponding to the hue parameter to obtain the hue map corresponding to each hue parameter; each of the hue maps is divided into multiple sub-areas, and the division range of each sub-area can correspond to different ranges according to different degrees of color change; each of the sub-areas corresponds to different target colors; The step of obtaining a target hue diagram based on the first color parameter corresponding to the first selection operation specifically includes: Determining a first color parameter corresponding to the first selection operation; Using the first color parameter as a search condition, searching for the file names of the plurality of hue images in a correspondence table; the correspondence table stores the correspondence between the first color parameter and the files of the plurality of hue images; The hue map that matches the first color parameter with the file name is used as a target hue map.

10. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the color display method according to any one of claims 1 to 7.