CN113986176A - Color display method and device, electronic equipment and readable medium - Google Patents
Color display method and device, electronic equipment and readable medium Download PDFInfo
- Publication number
- CN113986176A CN113986176A CN202111274383.8A CN202111274383A CN113986176A CN 113986176 A CN113986176 A CN 113986176A CN 202111274383 A CN202111274383 A CN 202111274383A CN 113986176 A CN113986176 A CN 113986176A
- Authority
- CN
- China
- Prior art keywords
- color
- parameter
- target
- hue
- phase diagram
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000010587 phase diagram Methods 0.000 claims abstract description 86
- 238000012545 processing Methods 0.000 claims description 13
- 239000003086 colorant Substances 0.000 claims description 4
- 239000000126 substance Substances 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 24
- 230000006870 function Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 10
- 238000003860 storage Methods 0.000 description 10
- 230000006872 improvement Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000010187 selection method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
Abstract
The embodiment of the specification discloses a color display method, a color display device, electronic equipment and a readable medium, wherein the method receives a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameters of each color phase diagram are different, and each color phase diagram is generated based on the second color parameters and the third color parameters under the corresponding first color parameters; determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user; and displaying the target color.
Description
Technical Field
The present application relates to the field of computers, and in particular, to a color display method and apparatus, an electronic device, and a computer-readable medium.
Background
Color mode is a model that represents a certain color in digital form, or a way to record the color of an image. The method can be divided into the following steps: RGB mode, CMYK mode, HSB mode, Lab color mode, etc.
In the HSB mode, H represents hue, S represents saturation, B represents brightness, and the medium corresponding to the HSB mode is human eyes, wherein the higher the values of S and B are, the higher the lightness of saturation is, the more intense and gorgeous the color is.
In the prior art, for example, when displaying a color in an HSB mode by using mobile phone software, a user enters a numerical value in a setting window of an HSB color parameter in a software interface, and the mobile phone performs rendering after calculating based on the entered color parameter and displays a color corresponding to the color parameter.
However, in this way, each time a color is displayed, a large amount of calculation and rendering are required for the mobile phone, the requirement for hardware such as a processor is high, and a phenomenon of jamming or dead halt may occur when the operation is frequently performed.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a color display method, apparatus, device, and computer readable medium to increase processing efficiency of hardware, increase display speed, and avoid the problems of jamming or dead jamming.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
the color selection method provided by the embodiment of the specification comprises the following steps:
receiving a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
and displaying the target color.
An embodiment of this specification provides a color display device, includes:
the receiving device is used for receiving a first selection operation of a user in a color selection interface of the application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
the first processing device is used for obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
second processing means for determining a target color in the target hue map based on a second selection operation of the target hue map by the user;
and the display device is used for displaying the target color.
The page building device including the target component provided by the embodiment of the specification comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable 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 application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameters of each color phase diagram are different, and each color phase diagram is generated based on the second color parameters and the third color parameters under the corresponding first color parameters; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
and displaying the target color.
The computer readable medium provided by the embodiment of the present specification has computer readable instructions stored thereon, and the computer readable instructions can be executed by a processor to realize a color display method provided by the embodiment of the present specification.
One embodiment of the present description can achieve at least the following advantages: when the application software is started for the first time, a plurality of color phase diagrams are created, a target color phase diagram matched with a first color parameter corresponding to a first selection operation in the plurality of color phase diagrams can be obtained according to the first selection operation of a user in a color selection interface, and therefore a target color is determined according to a second selection operation of the user in the target color phase diagram, and the target color is displayed. The hardware running the application software does not need to calculate, only needs to search the display target color, and even if the operation is frequent, the phenomena of blockage, halt and the like do not occur, so that the expenditure of the hardware is saved, and the color display efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic flow chart of a color display method provided in an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of an operation interface in a color display method according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a third color parameter for adjusting a target color in a color selection method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a color selecting device corresponding to fig. 1 provided in an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an electronic device corresponding to fig. 2 provided in an embodiment of the present disclosure.
Detailed Description
The mobile phone application software can adopt a mode of color palette, color palette or label bar with input parameters, etc., to make the user select or define the color. For the color in the HSB mode, a common method at present is to drag a hue selection bar to select a hue, then drag a saturation selection bar to select a saturation, and finally drag a brightness selection bar to adjust brightness. However, in this manner, the mobile phone is easily stuck or crashed in the mobile phone app.
In view of this, the color display method provided by the embodiment of the invention can reduce the overhead of the mobile phone hardware, improve the color display speed, and improve the operation efficiency of the mobile phone hardware. The embodiment of the invention is mainly applied to the color display method under the HSB (hue: h, saturation: s, brightness: b) mode color. In the HSB color mode, H is a hue parameter, which is a basic attribute of color, such as red, yellow, etc., and has a value range of 0-360, and S is a saturation parameter, which means the vividness of color; the higher the color is, the more brilliant; the value range is 0-110%, B is brightness, which means the brightness of color; the higher the color is, the brighter the color is; the value range is 0-100%.
To make the objects, technical solutions and advantages of one or more embodiments of the present disclosure more apparent, the technical solutions of one or more embodiments of the present disclosure will be described in detail and completely with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present specification, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from the embodiments given herein without making any creative effort fall within the protection scope of one or more embodiments of the present disclosure.
It is to be understood that, although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a color display method provided in an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of an operation interface in a color display method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an operation interface after the mobile phone application is opened.
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 therein. The color parameters of 2021, 2022, 2023, 2024, and 2025 are different. Of course, 2021, 2022, 2023, 2024, and 2025 are schematic diagrams, and do not represent that only one color is included, and any one of the regions 2021, 2022, 2023, 2024, and 2025 may include a plurality of colors corresponding to different hue parameters.
Referring to fig. 1 and fig. 2, an embodiment of the present invention discloses a color display method, including:
s101, receiving a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter.
The first selection operation can correspond to different operation modes according to different controls arranged 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 color map.
In this embodiment of the present invention, the receiving a first selection operation of a user in a color selection interface of application software specifically includes:
receiving a click operation of selecting colors in the color selection area by a user;
determining hue parameters corresponding to the click operation;
and displaying the target hue image corresponding to the hue parameter in the color display area.
The first selection operation may be a click operation, a double click operation, a delineation operation, etc. in the color selection area.
In the embodiment of the invention, the color phase diagram can be displayed in the color selection area. Wherein the hue map is generated based on the hue parameters. The initially displayed hue map in the color selection interface may include all hue parameters.
The user can click on the color selection area to select the color to be displayed. The hue parameter corresponding to the coordinate position can be obtained according to the corresponding coordinate of the selector on the hue diagram. To be able to obtain a target hue map.
In this embodiment of the present invention, the receiving a first selection operation of a user in a color selection interface of application software specifically includes:
receiving hue parameters input by a user in the color selection area;
and displaying the target hue image corresponding to the hue parameter in the color display area.
The color selection area may be a control having an input box, and the first selection operation may be inputting a numerical value corresponding to a color parameter in the input box. So that a target hue image can be obtained from the hue parameters.
S102, obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter and the third color parameter is a saturation parameter.
In the embodiment of the present invention, the corresponding first color parameter may be determined based on the first selection operation, and the target color phase diagram may be obtained through the first color parameter.
To reduce the load on the hardware, multiple color phase diagrams may be created when the application software is first started. The first start may be based on an identification of the first start or directly trigger step 101 upon the first start. Each color phase diagram may be generated based on the hue parameters, that is, each color phase diagram is generated by the respective brightness parameters and the respective saturation parameters under a certain hue parameter. For each hue parameter, taking the hue parameter with the hue parameter of 0.5 as an example, the color of the pixel point at the upper right corner of the generated hue image is 0.5 of the hue parameter, 0 of the saturation parameter and 1 of the brightness parameter, the hue is kept unchanged from right to left, the saturation parameter is increased from 0 to 1, and the brightness parameter is decreased from 1 to 0 from top to bottom. Of course, such a generation method may be adopted when the hue parameter is other.
Of course, it is also possible to keep the hue unchanged, for example, from right to left, reduce the saturation parameter from 1 to 0, and reduce the luminance parameter from 1 to 0 from bottom to top. Other creation rules are also possible as long as the color phase diagram under each color phase parameter can be displayed.
The obtaining the target color phase diagram based on the first color parameter corresponding to the first selection operation specifically includes:
determining a first color parameter corresponding to the first operation;
searching the file names of a plurality of color phase diagrams by taking the first color parameter as a searching condition;
and taking the color picture with the first color parameter matched with the file name as a target color picture.
In the embodiment of the invention, the target color phase diagram can be determined according to the first color parameter corresponding to the first selection operation. The target color phase diagram is one of a plurality of color phase diagrams created when the application software is started for the first time and corresponds to the first color parameter. The value of the first color parameter may be matched with the identifier of the color chart, the identifier may specifically be a file name, and the matching may be matched with a regular expression. The determining of the target color shade map may also be performed by searching according to a pre-established correspondence table, where a correspondence between the first color parameter and a file name of the color shade map is stored in the correspondence table, and the target color shade map is determined according to the correspondence.
S103, determining a target color in the target color phase diagram based on a second selection operation of the user on the target color phase diagram.
In the embodiment of the invention, after the target color picture is determined, the user can perform the second selection operation on the target color picture, and the second selection operation can determine the target color in the target color picture. Wherein the target color is a color shown in the target hue diagram.
After the target hue map is determined, it can be presented in the color display area. The second selection operation may be a selection operation in the color display area, specifically, a touch operation such as a single-click operation or a double-click operation, or an input operation of inputting a numerical value corresponding to a color parameter in the input box.
A target color in the target hue map may be determined according to the second operation. The target color may be a color represented by a picture in a color phase diagram, and the color parameter of the target color may be a hue parameter corresponding to the target color phase diagram and a brightness parameter and a saturation parameter of an area where the target color is located.
The determining a target color in the target color shade map based on a second selection operation of the user on the target color shade map specifically comprises:
determining the coordinates of a selected point of a user for performing second selection operation in the color display area;
and determining the target color based on the pixel of the target color phase diagram and the coordinate of the selected point.
In the embodiment of the invention, the target color can be obtained by calculating the corresponding saturation parameter and brightness parameter according to the corresponding coordinate of the selector on the target color phase diagram and adding the hue parameter.
In practical use, for example: the hue parameter is 0, the target hue image length is 300 pixels, the height is 200 pixels, and the selected point position is (x:150 pixels, y: 100 pixels), then the determined HSB color parameter of the target color is (0, 0.5, 0.5).
And S104, displaying the target color.
When the target color is determined, the target color may be displayed. Of course, the region displaying the target color may be a color selection region, a color display region, or other display region dedicated to displaying the target color. Or may be a sub-area in the color display area.
Displaying the target color may specifically be displaying a picture of the target color in the target color phase diagram.
In the embodiment of the invention, each color picture can be divided into a plurality of sub-areas, and the division range of each sub-area can correspond to different ranges according to different degrees of color change. Each sub-region may correspond to a different target color and the sub-region may correspond to a color parameter. Specifically, the hue parameter, the brightness parameter, and the saturation parameter correspond to one sub-region, and the picture at each sub-region is used to show the color corresponding to the color parameter of the sub-region.
The displaying the target color may specifically include: determining a sub-region of a target color picture where a target color is located, cutting pixels of the sub-region according to the size of the pixels of a display interface, and displaying the cut sub-region in the display interface.
It can be seen from the above embodiments that the color display method provided in the embodiments of the present invention can pre-generate a color phase diagram corresponding to all hues when the APP is started for the first time, directly determine the color to be displayed in the color phase diagram according to the operation of the user, and only need to perform display without hardware calculation, thereby greatly reducing the operating efficiency of the mobile phone hardware, improving the display efficiency, enabling the user to have no phenomena such as jamming when using application software, and improving the user experience.
In the foregoing embodiment, the pre-generation of the hue diagram is described, and the generation process of the hue diagram is described below.
Fig. 3 is a schematic flow chart of generating a color phase diagram in a color display method provided in an embodiment of the present invention.
The generation process of the plurality of color maps comprises the following steps:
s301, determining hue parameters of a hue diagram to be generated by taking the first starting of the application software as a trigger;
s302, a color phase map generation step is performed for each color phase parameter.
The color picture generation step specifically comprises:
obtaining pixel parameters corresponding to the hue parameters;
determining the brightness parameter and the saturation parameter of each pixel point under the pixel parameter according to the pixel parameter;
and generating a color phase diagram under the pixel parameter according to the color phase parameter, the brightness parameter and the saturation parameter.
In the embodiment of the invention, when the application software is triggered for the first time, the step of generating the color phase diagram is executed.
When the application software is triggered for the first time, the application software may be specifically run for the first time after installation of the application software is completed, or when the function of the HSB color mode in the application software is started for the first time, or when the application software is started for the first time. When the application software is closed, the plurality of color phase diagrams generated by the trigger can be cleared, so that the storage space is saved.
In the embodiment of the invention, when the application software is triggered for the first time, the hue parameters of the generated hue diagram can be determined according to the preset generation rule. The generation rules may include the accuracy of the hue parameters and the pixel size of the generated color map, and color maps of different pixel sizes may 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.
And for each hue parameter, obtaining a pixel parameter corresponding to the hue parameter, determining a brightness parameter and a saturation parameter of each point under the pixel parameter according to the pixel parameter, and generating a hue diagram corresponding to the hue parameter.
And generating a plurality of color phase diagrams for displaying when displaying colors according to the generating step.
In the embodiment of the invention, the color phase diagram can be generated in advance when the application software is started for the first time, so that hardware calculation and rendering are not needed when color display is carried out, hardware resources are saved, and display efficiency is improved.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method. Fig. 4 is a schematic structural diagram of a color display device corresponding to fig. 1 provided in an embodiment of the present disclosure. As shown in fig. 4, the apparatus may include:
receiving means 401, configured to receive a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
a first processing device 402, configured to obtain a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
a second processing device 403, configured to determine a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
a display device 404 for displaying the target color.
It will be appreciated that the modules described above refer to computer programs or program segments for performing a certain function or functions. In addition, the distinction between the above-described modules does not mean that the actual program code must also be separated.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method.
Fig. 5 is a schematic structural diagram of an electronic device corresponding to fig. 2 provided in an embodiment of the present disclosure. As shown in fig. 5, the electronic device 500 may include:
at least one processor 510; and the number of the first and second groups,
a memory 530 communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory 530 stores instructions 520 executable by the at least one processor 510 to enable the at least one processor 510 to:
receiving a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
and displaying the target color.
Based on the same idea, the embodiment of the present specification further provides a computer-readable medium corresponding to the above method. The computer readable medium has computer readable instructions stored thereon that are executable by a processor to implement the method of:
receiving a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
and displaying the target color.
While particular embodiments of the present specification have been described above, in some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in this specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other.
The apparatus, the electronic device and the method provided in the embodiments of the present description are corresponding, and therefore, the apparatus and the electronic device also have similar beneficial technical effects to the corresponding method, and since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus and device are not described again here.
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 character system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip. 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 functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information which 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.
The application 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 application 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 above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. 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 (11)
1. A color display method, comprising:
receiving a first selection operation of a user in a color selection interface of application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
and displaying the target color.
2. The method according to claim 1, characterized in that the color selection interface comprises in particular a color selection area and a color display area.
3. The method according to claim 2, wherein receiving a first selection operation of a user in a color selection interface of application software specifically comprises:
receiving a click operation of selecting colors in the color selection area by a user;
determining hue parameters corresponding to the click operation;
and displaying the target hue image corresponding to the hue parameter in the color display area.
4. The method according to claim 2, wherein receiving a first selection operation of a user in a color selection interface of application software specifically comprises:
receiving hue parameters input by a user in the color selection area;
and displaying the target hue image corresponding to the hue parameter in the color display area.
5. The method according to claim 3 or 4, wherein the determining a target color in the target color shade map based on the second selection operation of the target color shade map by the user specifically comprises:
determining the coordinates of a selected point of a user for performing second selection operation in the color display area;
and determining the target color based on the pixel of the target color phase diagram and the coordinate of the selected point.
6. The method according to any one of claims 1 to 4, wherein the obtaining a target hue map based on the first color parameter corresponding to the first selection operation specifically comprises:
determining a first color parameter corresponding to the first operation;
searching the file names of a plurality of color phase diagrams by taking the first color parameter as a searching condition;
and taking the color picture with the first color parameter matched with the file name as a target color picture.
7. The method according to claim 2, wherein the displaying the target color specifically comprises:
and displaying the target color in the color display area.
8. The method of claim 1, wherein the generating of the plurality of color maps comprises:
determining hue parameters of a color phase diagram to be generated by taking the first starting of the application software as a trigger;
for each hue parameter:
obtaining pixel parameters corresponding to the hue parameters;
determining the brightness parameter and the saturation parameter of each pixel point under the pixel parameter according to the pixel parameter;
and generating a color phase diagram under the pixel parameter according to the color phase parameter, the brightness parameter and the saturation parameter.
9. A color display device, comprising:
the receiving device is used for receiving a first selection operation of a user in a color selection interface of the application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
the first processing device is used for obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameters of each color phase diagram are different, and each color phase diagram is generated based on the second color parameters and the third color parameters under the corresponding first color parameters; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
second processing means for determining a target color in the target hue map based on a second selection operation of the target hue map by the user;
and the display device is used for displaying the target color.
10. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable 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 application software; a color phase diagram generated based on a first color parameter is displayed in the color selection interface; the first color parameter is a hue parameter;
obtaining a target color phase diagram based on a first color parameter corresponding to the first selection operation; the target color picture is one of a plurality of color pictures which are created when the application software is started for the first time and correspond to the first color parameter; the first color parameter of each color phase diagram is different from the first color parameter of other color phase diagrams, and each color phase diagram is generated based on the second color parameter and the third color parameter under the corresponding first color parameter; the second color parameter is a brightness parameter, and the third color parameter is a saturation parameter;
determining a target color in the target color shade map based on a second selection operation of the target color shade map by the user;
and displaying the target color.
11. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the colour display method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111274383.8A CN113986176A (en) | 2021-10-29 | 2021-10-29 | Color display method and device, electronic equipment and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111274383.8A CN113986176A (en) | 2021-10-29 | 2021-10-29 | Color display method and device, electronic equipment and readable medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113986176A true CN113986176A (en) | 2022-01-28 |
Family
ID=79744635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111274383.8A Pending CN113986176A (en) | 2021-10-29 | 2021-10-29 | Color display method and device, electronic equipment and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113986176A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117315172A (en) * | 2023-09-22 | 2023-12-29 | 鲸数科技(北京)有限公司 | Map page configuration method, map page configuration device, electronic equipment and computer readable medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080060689A (en) * | 2006-12-27 | 2008-07-02 | 엔에이치엔(주) | Method and device for providing color selection interface |
US20140292799A1 (en) * | 2013-04-01 | 2014-10-02 | Adobe Systems Incorporated | Color selection interface |
US20160370978A1 (en) * | 2015-06-17 | 2016-12-22 | Alibaba Group Holding Limited | System, method, and apparatus for color selection |
CN112035210A (en) * | 2020-09-30 | 2020-12-04 | 北京百度网讯科技有限公司 | Method, apparatus, device and medium for outputting color information |
-
2021
- 2021-10-29 CN CN202111274383.8A patent/CN113986176A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080060689A (en) * | 2006-12-27 | 2008-07-02 | 엔에이치엔(주) | Method and device for providing color selection interface |
US20140292799A1 (en) * | 2013-04-01 | 2014-10-02 | Adobe Systems Incorporated | Color selection interface |
US20160370978A1 (en) * | 2015-06-17 | 2016-12-22 | Alibaba Group Holding Limited | System, method, and apparatus for color selection |
CN106325786A (en) * | 2015-06-17 | 2017-01-11 | 阿里巴巴集团控股有限公司 | A color selection method and apparatus |
CN112035210A (en) * | 2020-09-30 | 2020-12-04 | 北京百度网讯科技有限公司 | Method, apparatus, device and medium for outputting color information |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117315172A (en) * | 2023-09-22 | 2023-12-29 | 鲸数科技(北京)有限公司 | Map page configuration method, map page configuration device, electronic equipment and computer readable medium |
CN117315172B (en) * | 2023-09-22 | 2024-04-12 | 鲸数科技(北京)有限公司 | Map page configuration method, map page configuration device, electronic equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10416874B2 (en) | Methods, apparatuses, and devices for processing interface displays | |
CN109192054B (en) | Data processing method and device for map region merging | |
US8760464B2 (en) | Shape masks | |
CN106484080B (en) | Display interface display method, device and equipment | |
US10504258B2 (en) | Information processing device editing map acquired from server | |
CN107622080B (en) | Data processing method and equipment | |
CN111752557A (en) | Display method and device | |
CN109976759B (en) | Page display method and device | |
CN109992266A (en) | A kind for the treatment of method and apparatus of interface element | |
CN109993822B (en) | Ink and wash style rendering method and device | |
US10908764B2 (en) | Inter-context coordination to facilitate synchronized presentation of image content | |
CN110806847A (en) | Distributed multi-screen display method, device, equipment and system | |
CN113986176A (en) | Color display method and device, electronic equipment and readable medium | |
US20140325404A1 (en) | Generating Screen Data | |
CN107621951B (en) | View level optimization method and device | |
CN108846879B (en) | Color plate generation method and device | |
CN116245051A (en) | Simulation software rendering method and device, storage medium and electronic equipment | |
KR102509976B1 (en) | Method for panning image | |
CN113986175A (en) | Color selection method and device, electronic equipment and readable medium | |
CN106569829B (en) | Method for realizing switching of working modes of touch screen, touch screen device and head-mounted equipment | |
CN113360154A (en) | Page construction method, device, equipment and readable medium | |
CN112162805B (en) | Screenshot method and device and electronic equipment | |
CN114283268A (en) | Three-dimensional model processing method, device, equipment and medium | |
CN112528614A (en) | Table editing method and device and electronic equipment | |
CN113987242A (en) | File picture visualization method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220713 Address after: 100190 Beijing Haidian District Zhichun Road 49 No. 3 West 309 Applicant after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd. Address before: 100102 Room 203, 14 and 19, floor 2, building 19, Wangjing Dongyuan seventh district, Chaoyang District, Beijing Applicant before: Beijing Guangqiyuan Digital Technology Co.,Ltd. |