CN108986180A - A kind of generation method of palette, device and electronic equipment - Google Patents

A kind of generation method of palette, device and electronic equipment Download PDF

Info

Publication number
CN108986180A
CN108986180A CN201810582280.XA CN201810582280A CN108986180A CN 108986180 A CN108986180 A CN 108986180A CN 201810582280 A CN201810582280 A CN 201810582280A CN 108986180 A CN108986180 A CN 108986180A
Authority
CN
China
Prior art keywords
tone
mass
palette
color
ratio value
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.)
Granted
Application number
CN201810582280.XA
Other languages
Chinese (zh)
Other versions
CN108986180B (en
Inventor
周星羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810582280.XA priority Critical patent/CN108986180B/en
Publication of CN108986180A publication Critical patent/CN108986180A/en
Application granted granted Critical
Publication of CN108986180B publication Critical patent/CN108986180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour

Abstract

This application discloses a kind of generation method of palette, device and electronic equipments, which comprises determines the mass-tone of palette;Number based on a specified determines ratio value corresponding with the specified number by Bezier;Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;Based on the mass-tone, the ratio value and the blend color, the palette is generated.

Description

A kind of generation method of palette, device and electronic equipment
Technical field
This application involves field of computer technology more particularly to a kind of generation methods of palette, device and electronic equipment.
Background technique
Palette can be a color table, color table can by it is a series of have certain representative basic color and it Gradient color composition, user can find the color of needs in palette and obtain color value.
It is that the mass-tone of selection and pure white are mixed to form light-colored part, by mass-tone in existing palette implementation Dark parts are mixed to form with ater to generate colour table.For example, the palette of 9 gradual change colors is needed for one, it is first First select a mass-tone as No. 5 colors, later, by mass-tone and the pure white mixture of colours, mass-tone with 80% the pure white mixture of colours as No. 1 Color, mass-tone with 60% the pure white mixture of colours as No. 2 colors, mass-tone with 40% the pure white mixture of colours as No. 3 colors, mass-tone and 20% The pure white mixture of colours as No. 4 colors.Later, by mass-tone and the black mixture of colours, mass-tone with 20% the black mixture of colours as No. 6 Color, mass-tone with 40% the black mixture of colours as No. 7 colors, mass-tone with 60% the black mixture of colours as No. 8 colors, mass-tone and 80% The black mixture of colours as No. 9 colors.A complete gradient swatch is obtained in the above manner.But the tune that this mode is formed The form and aspect of depth part are imperfect in colour table, and the color of especially dark parts is partially grey.
Summary of the invention
The embodiment of the present application provides generation method, device and the electronic equipment of a kind of palette, passes through Bezier to realize Curve generates palette, and the form and aspect of depth part are imperfect in the colour table avoided the formation of, and the color of especially dark parts is partially grey The problem of.
The embodiment of the present application adopts the following technical solutions:
In a first aspect, a kind of generation method of palette is provided, this method comprises:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
Second aspect provides a kind of generating means of palette, which includes:
Mass-tone determining module, for determining the mass-tone of palette;
Ratio value determining module is used for number based on a specified, passes through Bezier determination and the specified number Corresponding ratio value;
Color determination module, for based on the size relation between the specified number and the number of the mass-tone, really Determine blend color;
Generation module generates the palette for being based on the mass-tone, the ratio value and the blend color.
The third aspect provides a kind of electronic equipment, which includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed It manages device and executes following operation:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
Fourth aspect provides a kind of computer readable storage medium, the computer-readable recording medium storage one Or multiple programs, one or more of programs are when the electronic equipment for being included multiple application programs executes, so that the electricity Sub- equipment executes following operation:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
The embodiment of the present application use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
For each number on palette, ratio corresponding with the number specified can be determined by Bezier Value, the characteristic based on Bezier, ratio value can number smooth transitions based on a specified;By ratio value, mass-tone and mix After closing color generation palette, palette can have the characteristic of Bezier based on ratio value, make the transition of color range can more Harmony, this is it is avoided that the form and aspect of depth part are imperfect in the palette that the superposition of equal proportion results in, especially dark color portion The partially grey problem of the color divided.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the generation method of the palette of one embodiment of the application;
Fig. 2 is the schematic diagram that ratio value is determined by Bezier of one embodiment of the application;
Fig. 3 is the structural schematic diagram according to the electronic equipment of one embodiment of the application;
Fig. 4 is the structural schematic diagram according to the generating means of the palette of one embodiment of the application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 is the schematic flow chart of the generation method of the palette of one embodiment of the application.Method shown in FIG. 1 Executing subject can be, but not limited to mobile phone, computer and other intelligent terminals.Or the executing subject of method shown in FIG. 1 is also It can be and be able to carry out client of this method itself, such as method shown in FIG. 1 is executed by the generating means of palette.
As shown in Figure 1, determining the mass-tone of palette at S102.
Palette by a series of there is certain representative basic color and their gradient color to form, and user is in palette In can find the color of needs and obtain color value.
Producing principle based on palette can determine the mass-tone of toning analysis first.It should be pointed out that mixing colours determining While the mass-tone of plate, the number (mass-tone number) of mass-tone can be determined simultaneously.
For example, user can choose a mass-tone as No. 5 colors.The specific color of mass-tone can be chosen by user.
At S104, number based on a specified passes through the determining ratio value corresponding with specified number of Bezier.
Specified number can be pre-set number.For example, pre-set number can be 1 to 9, wherein No. 5 Color is mass-tone.
Bezier realizes the smooth transition of curve, and the more, then curve transition is further smooth for the point on curve.
Specified number can be associated with ratio value by Bezier, as a result, number based on a specified, it can To uniquely determine a corresponding ratio value by Bezier, thus number based on a specified, can more it is smooth really Certainty ratio value.
For example, the corresponding ratio value determined can then seamlessly transit for number 1 to 9.
At S106, the size relation based on a specified numbered between the number of mass-tone determines blend color.
Mass-tone plate generally includes light-colored part and dark parts are total to two parts colour table.For light-colored part colour table, mainly Mass-tone is mixed with white.For dark parts colour table, mainly mass-tone is mixed with black.Here white with Black is blend color.
Herein, it should be pointed out that blend color is also possible to other colors, especially for dark parts colour table, Blend color is not limited to black, can also generate blend color based on mass-tone.
It is further noted that typically, when specified number is less than or equal to the number of mass-tone, this is specified Part be usually light-colored part colour table number, when specified number is greater than the number of mass-tone, the specified number is usual For the number of dark parts colour table.Therefore, the size relation between number and the number of mass-tone based on a specified, can determine mixed Close color.
For example, for the palette including number 1 to 9, No. 5 colors are mass-tone, then 1 to No. 4 is light-colored part colour table, 6 to 9 Number be dark parts colour table.
At S108, it is based on mass-tone, ratio value and blend color, generates palette.
Based on the brightness of the adjustable blend color of ratio value, then mass-tone and blend color adjusted are mixed It closes, generates corresponding palette.
For each number on palette, ratio corresponding with the number specified can be determined by Bezier Value, the characteristic based on Bezier, ratio value can number smooth transitions based on a specified;By ratio value, mass-tone and mix After closing color generation palette, palette can have the characteristic of Bezier based on ratio value, make the transition of color range can more Harmony, this is it is avoided that the form and aspect of depth part are imperfect in the palette that the superposition of equal proportion results in, especially dark color portion The partially grey problem of the color divided.
In some embodiments, Bezier can be indicated by the polynomial form of Bornstein substrate of n rank, base In practical application, the value of n can preferably be limited between 1 to 10 here, this implementation is not specific to the value work of n, n value Size has no effect on the specific implementation of the present embodiment.
Fig. 2 is the schematic diagram that ratio value is determined by Bezier of one embodiment of the application.As shown in Fig. 2, figure In Bezier can be drawn based on parameter 0.26,0.09,0.67,0.73.0.26 correspond to parameter ctx, 0.09 Correspond to parameter end corresponding to parameter start, 0.67,0.73 corresponds to parametric curvature.
For the above parameter, Bezier can be generated by such as minor function, it may be assumed that
*@param{CanvasRenderingContext2D}ctx;
*@param { Array<number>} start starting point;
*@param { Array<number>} end terminal;
*@param { number } curveness curvature (0-1);
*/function drawCurvePath(ctx,start,end,curveness){};
The horizontal axis coordinate of the Bezier of generation can indicate that the number of palette, ordinate of orthogonal axes can indicate and mix colours Ratio value corresponding to the number of plate.
Based on Fig. 2 it is found that in number based on a specified, pass through the determining ratio corresponding with specified number of Bezier It when value, based on a specified can number, determine the horizontal axis coordinate point in the two-dimensional coordinate system where Bezier;Based on horizontal axis Coordinate points can be determined the ratio value on the longitudinal axis corresponding with horizontal axis coordinate point by Bezier.
Wherein, the distance between two numbers of arbitrary neighborhood are identical in Fig. 2.It is further noted that here Horizontal axis and the longitudinal axis are in contrast, can to carry out the conversion on position based on the positional relationship of itself therebetween, such as can be with Convert horizontal axis with the longitudinal axis for 90 degree of the two rotating Vortex, but this has no effect on the realization of the present embodiment.
Optionally, as an example, it is being based on horizontal axis coordinate point, is being determined by Bezier corresponding with horizontal axis coordinate point The longitudinal axis on ratio value when, can be based on horizontal axis coordinate point, determine by horizontal axis coordinate point and perpendicular to the straight line of horizontal axis with The intersection point of Bezier;Based on intersection point, ratio value corresponding with intersection point on the longitudinal axis can be determined in two-dimensional coordinate system.
Specifically, No. 6 colors in Fig. 2 are mass-tone, the corresponding ratio value of No. 1 color is 7.6%, indicates that No. 1 color subtracts light 93%; The corresponding ratio value of No. 6 colors is 100%, indicates that mass-tone subtracts light 0%.
Optionally, as an example, when determining blend color, white can be determined as to the mixed of light-colored part colour table Color is closed, i.e., when specified number is less than or equal to the number of mass-tone, white is determined as blend color.And for light portion The blend color of color separation plate then can be adjusted mass-tone to form blend color, specifically, when specified number is greater than master When the number of color, the color after mass-tone can be adjusted to HSB value is determined as blend color.
When being adjusted to mass-tone, it can be based on HSB model, corresponding form and aspect rotation is carried out to mass-tone and deepens brightness value To generate blend color.The color of the palette obtained in this way, dark parts colour table will not be partially grey, can promote whole visual impression Feel.
In HSB model, H indicates form and aspect (H, hue).In 0~360 ° of standard colour wheel, form and aspect are opsition dependent measurements. It is such as red, green or orange common in use, form and aspect are identified by color designation.Black and white is without form and aspect.
S indicates the purity (S, saturation) of color, is grey when S is 0.White, black and other grey colors all do not have Saturation degree.In maximum saturation, each form and aspect have most pure coloured light.S value range 0~100%.
B indicates brightness (B, brightness), is the brightness of color.As black when B is 0.Maximum brightness is color Most distinct state.S value range 0~100%.
RGB represents the color in three channels of red, green, blue, the excessively variation to red (R), green (G), blue (B) three Color Channels And the available miscellaneous color of their mutual superpositions.Therefore, any one mass-tone can pass through the shape of RGB Formula is indicated.
Any one can indicate that form and aspect rotation is exactly on the three-dimensional space in three-dimensional space by the color that RGB is indicated RGB point rotate a certain angle around by the perpendicular bisector of 3 points of planes constituted of RGB.
When being adjusted to mass-tone, can the cold and warm tone based on color corresponding form and aspect rotation is carried out to mass-tone and is deepened Brightness value.Specifically, the form and aspect of mass-tone can be rotated to the first predetermined angle counterclockwise, and will lead when mass-tone is warm colour The brightness value of color deepens the first preset ratio;When mass-tone is cool colour, the form and aspect of mass-tone are rotated clockwise into the second predetermined angle, And the brightness value of mass-tone is deepened into the second preset ratio.
When mass-tone is different cold and warm tone, the above different strategy is executed to carry out corresponding form and aspect rotation to mass-tone And deepen brightness value, it may be implemented to carry out targetedly form and aspect rotation to the most dark value of the mass-tone of cold-warm color, to be promoted Color vision effect.
Wherein, the first predetermined angle can be 26 degree, and the first preset ratio can be 50%;Second predetermined angle can be 10 degree, the second preset ratio can be 55%.These values can make the B value maximum value in the HSB model of blend color, i.e. B It is 100%.Wherein, B value is the optimal selection that maximum value is this implementation, and B value may be other different values, at this Within the scope of the realization of embodiment.It should be pointed out that the above specific value be the present embodiment determines according to actual conditions Preferred value, the present embodiment are not limited to the specific restriction to values above, and the first predetermined angle is also possible to the second predetermined angle Others value, the first preset ratio and the second preset ratio are also possible to other values.
Bezier song is passed through for any mass-tone (including the customized arbitrary hue of user) for the palette of generation Line and HSB model, an available more satisfied mass-tone color range, meet the needs of users.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
Below in conjunction with Fig. 3 detailed description according to the electronic equipment of one embodiment of the application.With reference to Fig. 3, in hardware Level, electronic equipment include processor, optionally, including internal bus, network interface, memory.Wherein, memory may wrap Containing memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile Memory (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that Hardware required for other business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, Control bus etc..Only to be indicated with a four-headed arrow in Fig. 3, it is not intended that an only bus or one kind convenient for indicating The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer The generating means of palette are formed on face.Processor executes the program that memory is stored, and is specifically used for executing following behaviour Make:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
The generation method of palette disclosed in the above-mentioned embodiment illustrated in fig. 1 such as the application, can be applied in processor, or Person is realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.During realization, Each step of the above method can be completed by the integrated logic circuit of the hardware in processor or the instruction of software form.On The processor stated can be at general processor, including central processing unit (Central Processing Unit, CPU), network Manage device (Network Processor, NP) etc.;Can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate Array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or crystalline substance Body pipe logical device, discrete hardware components.May be implemented or execute disclosed each method in the embodiment of the present application, step and Logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with The step of method disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute completion, or with decoding Hardware and software module combination in processor execute completion.Software module can be located at random access memory, flash memory, read-only storage In the storage medium of this fields such as device, programmable read only memory or electrically erasable programmable memory, register maturation.It should The step of storage medium is located at memory, and processor reads the information in memory, completes the above method in conjunction with its hardware.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one A or multiple programs, the one or more program include instruction, which holds when by the electronic equipment including multiple application programs When row, the method that the electronic equipment can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing following methods:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
Fig. 4 is the structural schematic diagram according to the generating means of the palette of one embodiment of the application.As shown in figure 4, In a kind of Software Implementation, the generating means 400 of palette include:
Mass-tone determining module 420, for determining the mass-tone of palette;
Ratio value determining module 440 is used for number based on a specified, passes through Bezier determination and the specified volume Number corresponding ratio value;
Color determination module 460, for based on the size relation between the specified number and the number of the mass-tone, Determine blend color;
Generation module 480 generates the palette for being based on the mass-tone, the ratio value and the blend color.
The generating means of palette based on the present embodiment pass through Bezier song for each number on palette Line can determine ratio value corresponding with the number specified, and the characteristic based on Bezier, ratio value can be based on a specified Number smooth transition;After generating palette by ratio value, mass-tone and blend color, palette can have Bei Sai based on ratio value The characteristic of your curve makes the transition of color range can be more harmonious, this is it is avoided that deep in the palette that the superposition of equal proportion results in The form and aspect of superficial part point are imperfect, especially the partially grey problem of the color of dark parts.
Optionally, as one embodiment, ratio value determining module 440,
Based on the specified number, the horizontal axis coordinate point in the two-dimensional coordinate system where the Bezier is determined;
Based on the horizontal axis coordinate point, determined on the longitudinal axis corresponding with the horizontal axis coordinate point by the Bezier Ratio value.
Optionally, as one embodiment, ratio value determining module 440,
Based on the horizontal axis coordinate point, determine by the horizontal axis coordinate point and perpendicular to the straight line of the horizontal axis with it is described The intersection point of Bezier;
Based on the intersection point, ratio value corresponding with the intersection point on the longitudinal axis is determined in the two-dimensional coordinate system.
Optionally, as one embodiment, color determination module 460,
When the specified number is less than or equal to the number of the mass-tone, white is determined as blend color;
When the specified number is greater than the number of the mass-tone, the color after the mass-tone to be adjusted to HSB value is determined For blend color.
Optionally, as one embodiment, color determination module 460,
Based on HSB model, corresponding form and aspect rotation is carried out to the mass-tone and deepens brightness value to generate the mixing face Color.
Optionally, as one embodiment, color determination module 460,
When the mass-tone is warm colour, the form and aspect of the mass-tone are rotated into the first predetermined angle counterclockwise, and by the master The brightness value of color deepens the first preset ratio;
When the mass-tone is cool colour, the form and aspect of the mass-tone are rotated clockwise into the second predetermined angle, and by the master The brightness value of color deepens the second preset ratio.
Optionally, as one embodiment,
First predetermined angle is 26 degree, and first preset ratio is 50%;
Second predetermined angle is 10 degree, and second preset ratio is 55%.
Optionally, as one embodiment,
B value in the HSB model of the blend color is maximum value.
Optionally, as one embodiment, generation module 480
The brightness of the blend color is adjusted based on the ratio value;
The mass-tone is mixed with the blend color adjusted, generates corresponding palette.
Optionally, as one embodiment, the specified number is pre-set number.
The method that the generating means 400 of palette can also carry out embodiment illustrated in fig. 1, and realize the generating means of palette The function of 400 embodiments shown in Fig. 1, details are not described herein for the embodiment of the present application.
In short, being not intended to limit the protection scope of the application the foregoing is merely the preferred embodiment of the application. Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's Within protection scope.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (13)

1. a kind of generation method of palette, comprising:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
2. according to the method described in claim 1,
Number based on a specified determines ratio value corresponding with the specified number by Bezier, comprising:
Based on the specified number, the horizontal axis coordinate point in the two-dimensional coordinate system where the Bezier is determined;
Based on the horizontal axis coordinate point, the ratio on the longitudinal axis corresponding with the horizontal axis coordinate point is determined by the Bezier Value.
3. according to the method described in claim 2,
It is described to be based on the horizontal axis coordinate point, it is determined on the longitudinal axis corresponding with the horizontal axis coordinate point by the Bezier Ratio value, comprising:
Based on the horizontal axis coordinate point, determine by the horizontal axis coordinate point and perpendicular to the straight line of the horizontal axis and the shellfish plug The intersection point of your curve;
Based on the intersection point, ratio value corresponding with the intersection point on the longitudinal axis is determined in the two-dimensional coordinate system.
4. according to the method described in claim 1,
The size relation based between the specified number and the number of the mass-tone, determines blend color, comprising:
When the specified number is less than or equal to the number of the mass-tone, white is determined as blend color;
When the specified number is greater than the number of the mass-tone, the color after the mass-tone to be adjusted to HSB value is determined as mixing Close color.
5. according to the method described in claim 4,
Color after the adjustment HSB value by the mass-tone is determined as blend color, comprising:
Based on HSB model, corresponding form and aspect rotation is carried out to the mass-tone and deepens brightness value to generate the blend color.
6. according to the method described in claim 5,
It is described that corresponding form and aspect rotation is carried out to the mass-tone and deepens brightness value to generate the blend color, comprising:
When the mass-tone is warm colour, the form and aspect of the mass-tone are rotated into the first predetermined angle counterclockwise, and by the mass-tone Brightness value deepens the first preset ratio;
When the mass-tone is cool colour, the form and aspect of the mass-tone are rotated clockwise into the second predetermined angle, and by the mass-tone Brightness value deepens the second preset ratio.
7. according to the method described in claim 6,
First predetermined angle is 26 degree, and first preset ratio is 50%;
Second predetermined angle is 10 degree, and second preset ratio is 55%.
8. according to the method described in claim 4,
B value in the HSB model of the blend color is maximum value.
9. method according to claim 1-8,
It is described based on the mass-tone, the ratio value and with the blend color, generate the palette, comprising:
The brightness of the blend color is adjusted based on the ratio value;
The mass-tone is mixed with the blend color adjusted, generates corresponding palette.
10. according to the method described in claim 1,
The specified number is pre-set number.
11. a kind of generating means of palette, comprising:
Mass-tone determining module, for determining the mass-tone of palette;
Ratio value determining module is used for number based on a specified, corresponding with the specified number by Bezier determination Ratio value;
Color determination module, for determining mixed based on the size relation between the specified number and the number of the mass-tone Close color;
Generation module generates the palette for being based on the mass-tone, the ratio value and the blend color.
12. a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
13. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs are when the electronic equipment for being included multiple application programs executes, so that the electronic equipment executes following behaviour Make:
Determine the mass-tone of palette;
Number based on a specified determines ratio value corresponding with the specified number by Bezier;
Based on the size relation between the specified number and the number of the mass-tone, blend color is determined;
Based on the mass-tone, the ratio value and the blend color, the palette is generated.
CN201810582280.XA 2018-06-07 2018-06-07 Palette generation method and device and electronic equipment Active CN108986180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810582280.XA CN108986180B (en) 2018-06-07 2018-06-07 Palette generation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810582280.XA CN108986180B (en) 2018-06-07 2018-06-07 Palette generation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108986180A true CN108986180A (en) 2018-12-11
CN108986180B CN108986180B (en) 2022-09-16

Family

ID=64540984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810582280.XA Active CN108986180B (en) 2018-06-07 2018-06-07 Palette generation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108986180B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196935A (en) * 2019-06-06 2019-09-03 山东大学 A kind of palette generation method and system based on data distribution
CN111381912A (en) * 2018-12-29 2020-07-07 北京金山云网络技术有限公司 UI palette determining method, device, equipment and storage medium
CN111915688A (en) * 2020-08-06 2020-11-10 上海宏路数据技术股份有限公司 Theme style generation method, electronic device and medium
CN112199619A (en) * 2020-10-30 2021-01-08 杭州安恒信息技术股份有限公司 Page color adjusting method, device and equipment and readable storage medium
CN113935891A (en) * 2021-09-09 2022-01-14 完美世界(北京)软件科技发展有限公司 Pixel-style scene rendering method, device and storage medium
CN116418983A (en) * 2019-12-30 2023-07-11 阿里巴巴(中国)有限公司 Method and apparatus for encoding video data in palette mode

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0491565A2 (en) * 1990-12-19 1992-06-24 Sony Corporation Color selecting method
JP2006109394A (en) * 2003-12-15 2006-04-20 Canon Inc Color processing apparatus and method
CN101655983A (en) * 2008-08-18 2010-02-24 索尼(中国)有限公司 Device and method for exacting dominant color
JP2011040050A (en) * 2009-07-15 2011-02-24 Nikon Corp Image classification device
US20110191674A1 (en) * 2004-08-06 2011-08-04 Sensable Technologies, Inc. Virtual musical interface in a haptic virtual environment
US20120120097A1 (en) * 2010-11-15 2012-05-17 Microsoft Corporation Clipart Cartoon Techniques
JP2013168048A (en) * 2012-02-16 2013-08-29 Nippon Hoso Kyokai <Nhk> Image correction device and program thereof
CN103620647A (en) * 2011-07-08 2014-03-05 株式会社尼康 Image classification method
US20140237429A1 (en) * 2012-08-06 2014-08-21 Wixpress Ltd. System for supporting flexible color assignment in complex documents
WO2016065173A1 (en) * 2014-10-22 2016-04-28 Alibaba Group Holding Limited Method and apparatus for displaying statistical graphs on a terminal display
CN105551069A (en) * 2015-11-30 2016-05-04 中国农业科学院棉花研究所 Method and system for real-time rapid generation of index image
US20170032542A1 (en) * 2015-07-29 2017-02-02 Adobe Systems Incorporated Applying live camera colors to a digital design
CN106797469A (en) * 2014-10-06 2017-05-31 Vid拓展公司 The improved palette coding for screen content coding
CN106875454A (en) * 2016-07-20 2017-06-20 阿里巴巴集团控股有限公司 A kind of gradient color generation method and device
CN106873959A (en) * 2016-07-12 2017-06-20 阿里巴巴集团控股有限公司 A kind of software interface color matching method and device
US20170206677A1 (en) * 2016-01-14 2017-07-20 Adp, Llc Intelligent Color Palettes Based on One or More Principal Colors
CN107945253A (en) * 2017-11-21 2018-04-20 腾讯数码(天津)有限公司 A kind of animation effect implementation method, device and storage device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0491565A2 (en) * 1990-12-19 1992-06-24 Sony Corporation Color selecting method
JP2006109394A (en) * 2003-12-15 2006-04-20 Canon Inc Color processing apparatus and method
US20110191674A1 (en) * 2004-08-06 2011-08-04 Sensable Technologies, Inc. Virtual musical interface in a haptic virtual environment
CN101655983A (en) * 2008-08-18 2010-02-24 索尼(中国)有限公司 Device and method for exacting dominant color
JP2011040050A (en) * 2009-07-15 2011-02-24 Nikon Corp Image classification device
US20120120097A1 (en) * 2010-11-15 2012-05-17 Microsoft Corporation Clipart Cartoon Techniques
CN103620647A (en) * 2011-07-08 2014-03-05 株式会社尼康 Image classification method
JP2013168048A (en) * 2012-02-16 2013-08-29 Nippon Hoso Kyokai <Nhk> Image correction device and program thereof
US20140237429A1 (en) * 2012-08-06 2014-08-21 Wixpress Ltd. System for supporting flexible color assignment in complex documents
CN106797469A (en) * 2014-10-06 2017-05-31 Vid拓展公司 The improved palette coding for screen content coding
WO2016065173A1 (en) * 2014-10-22 2016-04-28 Alibaba Group Holding Limited Method and apparatus for displaying statistical graphs on a terminal display
US20170032542A1 (en) * 2015-07-29 2017-02-02 Adobe Systems Incorporated Applying live camera colors to a digital design
CN105551069A (en) * 2015-11-30 2016-05-04 中国农业科学院棉花研究所 Method and system for real-time rapid generation of index image
US20170206677A1 (en) * 2016-01-14 2017-07-20 Adp, Llc Intelligent Color Palettes Based on One or More Principal Colors
CN106873959A (en) * 2016-07-12 2017-06-20 阿里巴巴集团控股有限公司 A kind of software interface color matching method and device
CN106875454A (en) * 2016-07-20 2017-06-20 阿里巴巴集团控股有限公司 A kind of gradient color generation method and device
CN107945253A (en) * 2017-11-21 2018-04-20 腾讯数码(天津)有限公司 A kind of animation effect implementation method, device and storage device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张龙飞 等: "基于ThemeRiver的可视化技术发展综述", 《系统仿真学报》 *
林怡 等: "基于敦煌壁画的演变模拟技术研究", 《计算机应用研究》 *
毕荣蓉 等: "基于Virtools的制造车间仿真系统的开发", 《网络新媒体技术》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381912A (en) * 2018-12-29 2020-07-07 北京金山云网络技术有限公司 UI palette determining method, device, equipment and storage medium
CN111381912B (en) * 2018-12-29 2024-02-02 北京金山云网络技术有限公司 UI palette determining method, device, equipment and storage medium
CN110196935A (en) * 2019-06-06 2019-09-03 山东大学 A kind of palette generation method and system based on data distribution
CN116418983B (en) * 2019-12-30 2023-10-31 阿里巴巴(中国)有限公司 Method and apparatus for encoding video data in palette mode
CN116437086B (en) * 2019-12-30 2023-11-17 阿里巴巴(中国)有限公司 Method and apparatus for encoding video data in palette mode
CN116418983A (en) * 2019-12-30 2023-07-11 阿里巴巴(中国)有限公司 Method and apparatus for encoding video data in palette mode
CN116437086A (en) * 2019-12-30 2023-07-14 阿里巴巴(中国)有限公司 Method and apparatus for encoding video data in palette mode
CN111915688A (en) * 2020-08-06 2020-11-10 上海宏路数据技术股份有限公司 Theme style generation method, electronic device and medium
CN111915688B (en) * 2020-08-06 2021-05-28 上海嗨普智能信息科技股份有限公司 Theme style generation method, electronic device and medium
CN112199619A (en) * 2020-10-30 2021-01-08 杭州安恒信息技术股份有限公司 Page color adjusting method, device and equipment and readable storage medium
CN112199619B (en) * 2020-10-30 2024-03-22 杭州安恒信息技术股份有限公司 Page color adjustment method, device, equipment and readable storage medium
CN113935891B (en) * 2021-09-09 2022-08-26 完美世界(北京)软件科技发展有限公司 Pixel-style scene rendering method, device and storage medium
CN113935891A (en) * 2021-09-09 2022-01-14 完美世界(北京)软件科技发展有限公司 Pixel-style scene rendering method, device and storage medium

Also Published As

Publication number Publication date
CN108986180B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN108986180A (en) A kind of generation method of palette, device and electronic equipment
US11532117B2 (en) Density coordinate hashing for volumetric data
CN105122339B (en) Method and apparatus for color rendering
CN110494895A (en) Use the Rendering operations of sparse volume data
CN106504220A (en) A kind of image processing method and device
CN106022307B (en) Remote sensing images ship detection method based on ship rotation rectangular space
CN106503004A (en) A kind of information processing method and device, terminal
CN105955733B (en) A kind of method, apparatus and mobile terminal for modifying icon
CN109741279A (en) Image saturation method of adjustment, device, storage medium and terminal
JP2021521559A (en) Image composition method and equipment
CN109993822A (en) A kind of wash painting style method and apparatus
CN109271587A (en) A kind of page generation method and device
CN107466410A (en) New edge sensing for original image processing is measured
CN110191154A (en) User tag determines method and apparatus
CN109726755A (en) A kind of picture mask method, device and electronic equipment
CN110070515A (en) Image composition method, device and computer readable storage medium
CN105808614A (en) Method and server for establishing specialty product knowledge bases, and method and server fro providing specialty product information
CN102147829A (en) IC (integrated circuit) function verification method
CN106483334A (en) A kind of calibration steps of Gravity accelerometer and calibration system
CN103823651B (en) The method and electronic equipment of a kind of information processing
CN109429062A (en) Treating method and apparatus, image encoding method and the device of pyramid model
CN109190687A (en) A kind of nerve network system and its method for identifying vehicle attribute
CN108734556A (en) Recommend the method and device of application
CN108846879A (en) The generation method and device of colour table
CN106325786A (en) A color selection method and apparatus

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

Effective date of registration: 20200930

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200930

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Zhou Xingyu

Inventor after: Zhu Xingmin

Inventor after: Lin Xiaoqing

Inventor before: Zhou Xingyu

CB03 Change of inventor or designer information