CN107479839A - Colour disk, double-colored rendering intent, take color method, readable storage medium storing program for executing and computer - Google Patents

Colour disk, double-colored rendering intent, take color method, readable storage medium storing program for executing and computer Download PDF

Info

Publication number
CN107479839A
CN107479839A CN201710528493.XA CN201710528493A CN107479839A CN 107479839 A CN107479839 A CN 107479839A CN 201710528493 A CN201710528493 A CN 201710528493A CN 107479839 A CN107479839 A CN 107479839A
Authority
CN
China
Prior art keywords
color
location point
toning block
block
toning
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
CN201710528493.XA
Other languages
Chinese (zh)
Other versions
CN107479839B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710528493.XA priority Critical patent/CN107479839B/en
Priority to PCT/CN2017/103772 priority patent/WO2019006892A1/en
Publication of CN107479839A publication Critical patent/CN107479839A/en
Application granted granted Critical
Publication of CN107479839B publication Critical patent/CN107479839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a kind of colour disk, double-colored rendering intent, color method and readable storage medium storing program for executing, computer are taken, the colour disk is provided with toning block, and the double-colored rendering intent includes:When the toning block is in positive movement on the colour disk, obtains the first color corresponding to initial position of the toning block in the colour disk and obtain the second color of user's selection;Travel through each location point of the motion track of the toning block, color increment of first color to second color change is calculated according to the positional increment that the toning block moves, to obtain color of object corresponding to each location point of the toning block in the motion track;Drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and the border circular areas is filled with color of object corresponding to the current location point.The color for regulating and controlling colour disk processed by mobile toning block changes between the first color and the second color.

Description

Colour disk, double-colored rendering intent, take color method, readable storage medium storing program for executing and computer
Technical field
The present invention relates to color treatments field, more particularly to a kind of colour disk, double-colored rendering intent, takes color method, readable Storage medium and computer.
Background technology
Terminal device such as computer, flat board etc. takes color at present, and display is controlled generally by the color on colour disk is chosen The color change of picture.
Multiple color is preset on existing colour disk, user only needs to choose one of which color on colour disk.However, The color that existing colour disk is presented is limited, generally requires user and adjusts R, G, B value or H, S, L value to change color.And for not It is familiar with for R, G, B value of color or the user of H, S, L value, repeatedly attempts just obtain desired color.Its color adaptation Mode is single, can not the desired color of quick obtaining.
The content of the invention
In view of above-mentioned condition, it is necessary to the problem of taking colour efficiency low for colour disk of the prior art, there is provided a kind of colour disk, Double-colored rendering intent, take color method, readable storage medium storing program for executing and computer.
The invention provides a kind of double-colored rendering intent of colour disk, the colour disk is provided with toning block, described double-colored to render Method includes:
When the toning block is in positive movement on the colour disk, initial position of the toning block in the colour disk is obtained Corresponding first color and the second color for obtaining user's selection;
Each location point of the motion track of the toning block is traveled through, the positional increment meter moved according to the toning block First color is calculated to the color increment of second color change, to obtain the toning block in the every of the motion track Color of object corresponding to individual location point;
Drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and with the current location Color of object fills the border circular areas corresponding to point.
Above-mentioned double-colored rendering intent, wherein, the positional increment moved according to the toning block calculates first face Color is corresponded to the color increment of second color change with obtaining the toning block in each location point of the motion track Color of object the step of include:
R, G, B value of the first color difference with R, G, B value of second color respectively is calculated, obtains R, G, B residual quantity Value;
Calculate it is described toning block from the initial position be moved to current location point when positional increment;
The ratio of the positional increment and predeterminated position increment is calculated, and according to the ratio and R, G, B quantity value Calculate R, G, B value of color of object corresponding to the current location point.
Above-mentioned double-colored rendering intent, wherein, the calculation formula of R, G, B value of the color of object is:
As Δ d≤D,
As Δ d>During D,
Wherein, r, g, b are respectively R, G, B value of the current location point corresponding color, r1、g1、b1Respectively described first R, G, B value of color, r2、g2、b2R, G, B value of respectively described second color, Δ r, Δ g, Δ b are respectively described R, G, B poor Value, Δ d be the toning block from the initial position be moved to the current location point when positional increment, D is described pre- If positional increment.
Above-mentioned double-colored rendering intent, wherein, it is described that the circle is filled with color of object corresponding to the current location point Also include after the step of region:
When the toning block inversely moves, determine corresponding to the location point on the motion track where the toning block Color, and with border circular areas corresponding to the location point where block of being mixed colours described in the corresponding color filling.
Above-mentioned double-colored rendering intent, wherein, the origin when toning block moves around the colour disk rotates, the calculating institute State toning block from the initial position be moved to current location point when positional increment the step of include:
The coordinate of each location point of the motion track of the toning block is obtained, and obtains the origin to the movement The vector of the coordinate of each location point of track;
Adjacent vectorial angle between initial position described in cumulative calculation and current location point, to obtain the toning block Positional increment when being moved to the current location point from the initial position.
Above-mentioned double-colored rendering intent, wherein, 1 ° of the adjacent location point interval of the motion track of the color lump.
Above-mentioned double-colored rendering intent, wherein, the current location point using where the toning block is drawn as the center of circle to be justified, and is formed Border circular areas, and to include corresponding to the current location point the step of color of object filling border circular areas:
Judge that the current location point on the colour disk where the toning block whether there is corresponding border circular areas;
If so, the color of border circular areas corresponding to the current location point is replaced with into the color of object;
Justify if it is not, then being drawn using the current location point as the center of circle, form border circular areas, and institute is filled with the color of object State border circular areas corresponding to the point of current location.
The present invention also provides one kind and takes color method, wherein, applied in above-mentioned colour disk, including:
When getting click signal, the coordinate of click location is determined, and the toning block is moved on the colour disk Location point corresponding to the coordinate;
Choose the color of the border circular areas of location point corresponding to the coordinate on the colour disk.
Present invention also offers a kind of colour disk, the colour disk is provided with toning block, and the colour disk includes:
Color acquisition module, for when the toning block is in positive movement on the colour disk, obtaining the toning block and existing First color corresponding to the initial position of the colour disk and the second color for obtaining user's selection;
Computing module, each location point of the motion track for traveling through the toning block, is moved according to the toning block Dynamic positional increment calculates color increment of first color to second color change, to obtain the toning block in institute State color of object corresponding to each location point of motion track;
First filling module, drawn and justified as the center of circle using the current location point where the toning block, formation border circular areas, and with Color of object corresponding to the current location point fills the border circular areas.
Above-mentioned colour disk, wherein, the calculation block includes:
First calculating sub module, for calculate the first color R, G, B value respectively with R, G, B value of second color Difference, obtain R, G, B quantity value;
Second calculating sub module, for calculate it is described toning block from the initial position be moved to current location point when position Put increment;
3rd calculating sub module, for calculating the ratio of the positional increment and predeterminated position increment, and according to the ratio Value and R, G, B quantity value calculate R, G, B value of color of object.
Above-mentioned colour disk, wherein, the calculation formula of R, G, B value of the color of object is:
As Δ d≤D,
As Δ d>During D,
Wherein, r, g, b are respectively R, G, B value of the current location point corresponding color, r1、g1、b1Respectively described first R, G, B value of color, r2、g2、b2R, G, B value of respectively described second color, Δ r, Δ g, Δ b are respectively described R, G, B poor Value, Δ d be the toning block from the initial position be moved to the current location point when positional increment, D is described pre- If positional increment.
Above-mentioned colour disk, in addition to:
Second filling module, for when the toning block inversely moves, determining the toning block on the motion track Color corresponding to the location point at place, and with circular corresponding to the location point where block of being mixed colours described in the corresponding color filling Region.
Above-mentioned colour disk, wherein, the origin when toning block moves around the colour disk rotates, second calculating sub module Including:
Coordinate obtaining module, the coordinate of each location point of the motion track for obtaining the toning block, and obtain Vector of the origin to the coordinate of each location point of the motion track;
Angle calculation module, for the angle of adjacent vector between initial position described in cumulative calculation and current location point, With obtain it is described toning block from the initial position be moved to the current location point when positional increment.
Above-mentioned colour disk, in addition to:
Signal acquisition module, for when getting click signal, determining the coordinate of click location, and by the toning block Location point corresponding to the coordinate is moved on the colour disk;
Color selecting module, for choosing the color of the border circular areas of location point corresponding to the coordinate on the colour disk.
Present invention also offers a kind of readable storage medium storing program for executing, computer program is stored thereon with, the program is held by processor The step of above method is realized during row.
Present invention also offers a kind of computer, including memory, processor and storage on a memory and can located The computer program that runs on reason device, the step of realizing the above method during computing device described program.
In the embodiment of the present invention, user can using the color of the border circular areas of any one location point where block of mixing colours as First color, and obtain user and select color to regulate and control the color of colour disk processed first by mobile toning block as the second color Change between color and the second color.Facilitate user voluntarily to debug color, obtain the colorful colour disk of color change, and quickly obtain Desired color.
Brief description of the drawings
Fig. 1 is the double-colored rendering intent flow chart in first embodiment of the invention;
Fig. 2 is the double-colored rendering intent flow chart in second embodiment of the invention;
Fig. 3 is the double-colored rendering intent flow chart in third embodiment of the invention;
Fig. 4 is to take color method flow chart in fourth embodiment of the invention;
Fig. 5 is the structured flowchart of the colour disk in fifth embodiment of the invention;
Fig. 6 is the structured flowchart of computing module in Fig. 5.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to following description and accompanying drawing, it will be clear that these and other aspects of embodiments of the invention.In these descriptions In accompanying drawing, some particular implementations in embodiments of the invention are specifically disclosed, to represent to implement the implementation of the present invention Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention Embodiment includes all changes, modification and the equivalent fallen into the range of the spirit and intension of attached claims.
Refer to the double-colored rendering intent that Fig. 1 is the colour disk in first embodiment of the invention, including step S11~S13, institute State colour disk and be provided with toning block, the toning block can move on the colour disk, such as user can be by dragging mouse or touch The mode of display screen drags the toning block.
Step S11, when the toning block is in positive movement on the colour disk, the toning block is obtained in the colour disk First color corresponding to initial position and the second color for obtaining user's selection.First color is the toning block on colour disk When mobile, color corresponding to source location set.Multiple Standard Colors can be preset on the colour disk, user is by mouse or touches The one of color of selection is touched as the second color.
Step S12, each location point of the motion track of the toning block is traveled through, the position moved according to the toning block The first color described in incremental computations is put to the color increment of second color change, to obtain the toning block in the movement Color of object corresponding to each location point of track.
During user's movement toning block, the positional increment that is moved according to toning block calculates first color to described the The color increment of the color change of second colors, the color increment are the degree of color change.Such as, mix colours block motion track from Positional increment when first Color Color becomes the toning block for turning to the second color completely is into D, according to the motion track for block of mixing colours Positional increment corresponding to the point of current location and color increment from the color of D ratio calculation first to the color change of the second color, To obtain color of object corresponding to the point of current location.
Step S13, drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and with described Color of object corresponding to the point of current location fills the border circular areas.
After determining color of object corresponding to the point of current location, drawn and justified as the center of circle using the current location point, form circle Domain, and color of object corresponding to the point of current location is filled in the border circular areas that the current location point is the center of circle.Traversal is adjusted Each location point of color lump motion track, you can be rendered into the motion track for block of mixing colours from the first color to the second color gradually The colour band of change.Thus, the color between the first color and the second color is can obtain from the colour disk after rendering.
In the present embodiment, user can be used as first using the color of the border circular areas of any one location point where block of mixing colours Color, and the color for obtaining user's selection regulates and controls the color of colour disk processed in the first face as the second color by mobile toning block Change between color and the second color.Facilitate user voluntarily to debug color, obtain the colorful colour disk of color change.
It is the colour disk in second embodiment of the invention to refer to Fig. 2, and the colour disk is provided with toning block, and the toning block can Moved on the colour disk, such as user can drag the toning movement by way of dragging mouse or touch display screen.Institute Stating the double-colored rendering intent of colour disk includes step S21~S25.
Step S21, when the toning block is in positive movement on the colour disk, the toning block is obtained in the colour disk First color corresponding to initial position and the second color for obtaining user's selection.
Step S22, calculate R, G, B value difference with R, G, B value of second color respectively of the first color, obtain R, G, B quantity values.First color for it is described toning block in the initial position of its motion track, corresponding border circular areas is shown Color.R, G, B quantity value Δ r, Δ g and Δ b calculation formula are as follows:
Δ r=r2-r1
Δ g=g2-g1
Δ b=b2-b1
Wherein, r1、g1、b1R, G, B value of respectively described first color, r2、g2、b2The R of respectively described second color, G, B values.
Step S23, travel through it is described toning block motion track each location point, calculate it is described toning block from it is described just Positional increment of beginning position when being moved to current location point.
The toning block includes multiple location points being uniformly arranged, adjusted when being moved on colour disk on the motion track of formation When color lump is often moved to a location point, the current location that the toning block is moved to the colour disk from the initial position is calculated Positional increment during point.
Step S24, calculates the ratio of the positional increment and predeterminated position increment, and according to the ratio and the R, G, B quantity values calculate R, G, B value of color of object corresponding to the current location point.
Step S25, drawn and justified as the center of circle using the current location point, form border circular areas, and with the current location point pair The color of object answered fills the border circular areas.
In above-mentioned steps, R, G, B value of color of object, the mesh are calculated according to the ratio and R, G, B quantity value R, G, B value of color are marked as the change of location point is in r1、g1、b1And r2、g2、b2Between change.With the current location for block of mixing colours Point draws circle for the center of circle, and color of object is filled in corresponding border circular areas, that is, obtains the circular color rendered with color of object Region.By this method exchange one location point of color lump motion track corresponding to border circular areas rendered, obtain from the first face Color region of the color to the second color gradient.
Specifically, during the toning block forward direction movement, the calculation formula of R, G, B value of the color of object is:
As Δ d≤D,
As Δ d>During D,
Wherein, r, g, b are respectively R, G, B value of the color of object, r1、g1、b1R, G of respectively described first color, B values, r2、g2、b2R, G, B value of respectively described second color, Δ r, Δ g, Δ b are respectively R, G, B quantity value, and Δ d is It is described toning block from the initial position be moved to the current location point when positional increment, D is the predeterminated position increment.
The positional increment Δ d moved according to toning block determines the color between the first color and the second color.When the tune When color lump is positive mobile, Δ d is more than 0, and the color that the motion track of block of mixing colours is shown is from the first color to the second color change, directly Border circular areas corresponding to the point of block position of being mixed colours when being more than or equal to predeterminated position increment to Δ d shows the second color.
Positional increment and the ratio of predeterminated position increment and the first color that the present embodiment is moved by block of mixing colours and the R, G, B value difference value of second colors, the color (comprising the first color and the second color) between the first color and the second color is calculated, And by the color filling calculated using each location point as the center of circle border circular areas with toning block movement make shape on colour disk Into from the first color to the color region of the second color change.
Referring to Fig. 3, be the double-colored rendering intent in third embodiment of the invention, including step S31~S37.The color Disk is provided with toning block, and the colour disk and the toning block are circle, and the diameter of the toning block is equal to the half of the colour disk Footpath, the toning block and the colour disk inscribe, the toning block move in the colour disk around the center of circle of the colour disk.
Step S31, when the toning block is in positive movement on the colour disk, the toning block is obtained in the colour disk First color corresponding to initial position and the second color for obtaining user's selection.
Step S32, calculate R, G, B value difference with R, G, B value of second color respectively of the first color, obtain R, G, B quantity values.
Step S33, each location point of the motion track when traversal toning block is positive mobile, obtains the toning The coordinate of each location point of the motion track of block, and the origin is obtained to each location point of the motion track The vector of coordinate.
Step S34, the angle of adjacent vector between initial position described in cumulative calculation and current location point are described to obtain Toning block from the initial position be moved to the current location point when positional increment.
Step S35, calculates the ratio of the positional increment and predeterminated position increment, and according to the ratio and the R, G, B quantity values calculate R, G, B value of color of object.
Step S36, drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and with described Color of object corresponding to the point of current location fills the border circular areas.When filling the border circular areas with color of object, according to institute R, G, B value for stating target color point carry out pixel Point Coloring to border circular areas.
In above-mentioned steps, the positional increment of toning block movement is the angle of rotation, i.e. is calculated from toning block in initial position It is moved to the angle, θ rotated during the point of current location.In block dragging process of mixing colours, searching loop θ, in units of 1 degree, mixing colours Disk upper drawing circle, drawn border circular areas is identical with toning block size, and toning is filled with the color of object of the calculating under each angle Disk current color is region.The anglec of rotation of drawn circle is:InitialAngle+1, InitialAngle+2 ..., InitialAngle+ θ, under initial situation, InitialAngle (initial angle) is 0, and toning bead is in the placed in the middle most upper of color saucer Side.
In above-mentioned steps, the current location point using where the toning block is drawn as the center of circle to be justified, and forms border circular areas, and The step of filling the border circular areas with color of object corresponding to the current location point includes:
Step S361, judge that the current location point whether there is corresponding border circular areas on the colour disk, if performing Step S362, otherwise perform step S363.
Step S362, the color of border circular areas corresponding to the current location point is replaced with into the color of object.
Step S363, drawn and justified as the center of circle using current location point, form border circular areas, and with described in color of object filling Border circular areas corresponding to the point of current location.
In the present embodiment, the toning effect of two kinds of colors is folded by largely filling the circle of color saucer current color along drawing direction Add to be formed.Need to consider during a large amount of mix colours, to avoid, because frequently toning causes Installed System Memory to increase excessively, taking down The method of stating avoids:
Ensure to mix colours when block moves and can at most draw 360 circles, i.e., it is identical with toning block per once forming one on colour disk The circle of size, make toning rendering effect smooth, it is natural.It is specific that circle corresponding to the anglec of rotation, rotation are recorded using a dictionary During, border circular areas corresponding to this location point is judged whether, is justified in the absence of just addition.Before just being deleted in the presence of if Circle, then draw color of object filling circle.Default color, such as black can be filled during certain colour disk initial setting up, toning block moves The color of original border circular areas is replaced when dynamic with color of object.
Step S37, when the toning block inversely moves, determine the position where the toning block on the motion track Color corresponding to point, and with border circular areas corresponding to the location point where block of being mixed colours described in the corresponding color filling.
Wherein, from the second color to the process of the first color gradient be process from the first color to the second color gradient it is inverse To process, the principle of two kinds of harmonious colours is identical.
The predeterminated position increment is, for example, 720 (degree), i.e., the quantity value of tri- Color Channels of R, G, B is divided into 720 Part, every a value is obtained as Δ r/720, Δ g/720, Δ b/720.When the positive movement of toning block, that is, rotate clockwise When, the calculation formula of R, G, B value of the color of object is:
When θ≤720 °,
Work as θ>At 720 °,
When the toning block is moved to the next position point from the current location point counterclockwise, i.e., moved from second place point When moving to three location points, the calculation formula of R, G, B value of color is corresponding to the 3rd location point:
When -720≤θ '≤0, during and θ≤720,
When -720≤θ '≤0, and during θ > 720,
As θ ' < -720,
Wherein, r ', g ', b ' are respectively R, G, B value of color corresponding to the 3rd location point, θ for the toning block from The initial position is moved to the angle rotated during the second place point, and θ ' is to be moved to the 3rd counterclockwise from second place point Angle during location point, it is negative value.
When the toning block is positive mobile, the angle of toning block movement is more than 0, the face that the motion track of block of mixing colours is shown Color is from the first color to the second color change, the current location pair when the positive mobile angle of block of mixing colours is more than or equal to 720 ° The border circular areas answered shows the second color;When block of mixing colours inversely moves, the angle of toning block movement is negative value, the shifting for block of mixing colours The color of dynamic rail mark filling is from the second color to the first color change, until the angle that toning block inversely moves is more than or equal to θ When corresponding to current location border circular areas fill the first color.If θ ' is less than -720 °, calculated by -720, toning block only need to be inverse Hour hands, which rotate 720 degree, can be transferred to the first color.
The double-colored method rendered is described in detail by taking the colour disk of circle as an example in the present embodiment, it is possible to understand that, the colour disk Circle is not limited to the shape of the color lump, or rectangle or other shapes, the positional increment of toning block movement is to mix colours The mobile distance of block calculates.
Referring to Fig. 4, fourth embodiment of the invention, which additionally provides one kind, takes color method, applied to the color in above-described embodiment In disk, including step S41~S42:
Step S41 determines the coordinate of click location when getting click signal, and the toning block is moved to described Location point corresponding to the coordinate on colour disk;
Step S42, choose the color of border circular areas corresponding to location point corresponding to the coordinate on the colour disk.
During with the optional position point on colour disk can be clicked on by mouse, the coordinate of the click location of mouse is obtained, will be mixed colours Block is moved to location point corresponding to the coordinate, and chooses the color of the border circular areas of location point corresponding to the coordinate.
By taking circular colour disk as an example, toning block moves around the origin of circular colour disk, and it includes one and held comprising the color of 360 Device, to record color corresponding to each anglec of rotation.When mouse is clicked on, the position coordinates of mouse is obtained, obtains color saucer Vectorial currentVector of the center of circle to clicking point.Calculate the vectorial originVextor and vector of initial position CurrentVector angle β, if β is negative, β=360+ β.Corresponding β color is looked in color pods, that is, is obtained a little Hit the color at place.Disk described in the present embodiment sets 360 location points in units of 1 °, if the coordinate of click location is located at two When between individual location point, by judging which location point limited range is click location fall in, to determine click location Border circular areas corresponding to described.Facilitate user's color that quickly selection needs on colour disk.
Referring to Fig. 5, being the colour disk in fifth embodiment of the invention, the colour disk is provided with toning block, the colour disk bag Include:
Color acquisition module 10, for when the toning block is in positive movement on the colour disk, obtaining the toning block First color corresponding to initial position in the colour disk and the second color for obtaining user's selection;
Computing module 20, each location point of the motion track for traveling through the toning block, according to the toning block Mobile positional increment calculates color increment of first color to second color change, is existed with obtaining the toning block Color of object corresponding to each location point of the motion track;
First filling module 30, drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and The border circular areas is filled with color of object corresponding to the current location point.
The color that the present embodiment regulates and controls colour disk processed by mobile toning block changes between the first color and the second color.Side Just user voluntarily debugs color, obtains the colorful colour disk of color change.
Further, as shown in fig. 6, the computing module 20 includes:
First calculating sub module 21, for calculating R, G, B value R, G, B value with second color respectively of the first color Difference, obtain R, G, B quantity value;
Second calculating sub module 22, for calculate it is described toning block from the initial position be moved to current location point when Positional increment;
3rd calculating sub module 23, for calculating the ratio of the positional increment and predeterminated position increment, and according to described Ratio and R, G, B quantity value calculate R, G, B value of color of object.
Further, the calculation formula of R, G, B value of the color of object is:
As Δ d≤D,
As Δ d>During D,
Wherein, r, g, b are respectively R, G, B value of the second place corresponding color, r1、g1、b1Respectively described first face R, G, B value of color, r2、g2、b2R, G, B value of respectively described second color, Δ r, Δ g, Δ b are respectively R, G, B residual quantity Value, Δ d be the toning block from the initial position be moved to the current location point when positional increment, D is described default Positional increment.
Further, the colour disk also includes:
Second filling module 40, for when the toning block inversely moves, determining the toning on the motion track Color corresponding to location point where block, and with circle corresponding to the location point where block of being mixed colours described in the corresponding color filling Shape region.
Further, the origin during toning block movement around the colour disk is rotated, and second calculating sub module 22 is wrapped Include:
Coordinate obtaining module, the coordinate of each location point of the motion track for obtaining the toning block, and obtain Vector of the origin to the coordinate of each location point of the motion track;
Angle calculation module, for vectorial folder adjacent between initial position described in cumulative calculation and current location point Angle, with obtain it is described toning block from the initial position be moved to the current location point when positional increment.
Further, the colour disk also includes:
Signal acquisition module 50, for when getting click signal, determining the coordinate of click location, and by the toning Block is moved on the colour disk location point corresponding to the coordinate;
Color selecting module 60, for choosing the face of the border circular areas of location point corresponding to the coordinate on the colour disk Color.
Present invention also offers a kind of readable storage medium storing program for executing, computer program is stored thereon with, the program is held by processor During row in above-described embodiment 1 to 4 the step of any one method.
Present invention also offers a kind of computer, including memory, processor and storage on a memory and can located The computer program that runs on reason device, any one in above-described embodiment 1 to 4 is realized during the computing device described program The step of method.
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is The hardware of correlation is instructed to complete by program.Described program can be stored in a computer read/write memory medium. The program upon execution, including the step described in the above method.Described storage medium, including:ROM/RAM, magnetic disc, CD Deng.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. the double-colored rendering intent of a kind of colour disk, it is characterised in that the colour disk is provided with toning block, the double-colored rendering intent Including:
When the toning block is in positive movement on the colour disk, the initial position for obtaining the toning block in the colour disk is corresponding The first color and obtain user selection the second color;
Each location point of the motion track of the toning block is traveled through, institute is calculated according to the positional increment that the toning block moves The first color is stated to the color increment of second color change, to obtain the toning block in each position of the motion track Put a little corresponding to color of object;
Drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and with the current location point pair The color of object answered fills the border circular areas.
2. double-colored rendering intent as claimed in claim 1, it is characterised in that the position moved according to the toning block increases Amount calculates color increment of first color to second color change, to obtain the toning block in the motion track Each location point corresponding to color of object the step of include:
R, G, B value of the first color difference with R, G, B value of second color respectively is calculated, obtains R, G, B quantity value;
Calculate it is described toning block from the initial position be moved to current location point when positional increment;
The ratio of the positional increment and predeterminated position increment is calculated, and is calculated according to the ratio and R, G, B quantity value R, G, B value of color of object corresponding to the current location point.
3. double-colored rendering intent as claimed in claim 2, it is characterised in that the calculating of R, G, B value of the color of object is public Formula is:
As Δ d≤D,
As Δ d>During D,
Wherein, r, g, b are respectively R, G, B value of the current location point corresponding color, r1、g1、b1Respectively described first color R, G, B value, r2、g2、b2R, G, B value of respectively described second color, Δ r, Δ g, Δ b are respectively R, G, B residual quantity Value, Δ d be the toning block from the initial position be moved to the current location point when positional increment, D is described default Positional increment.
4. double-colored rendering intent as claimed in claim 1, it is characterised in that described with target corresponding to the current location point Also include afterwards the step of border circular areas described in color filling:
When the toning block inversely moves, face corresponding to the location point on the motion track where the toning block is determined Color, and with border circular areas corresponding to the location point where block of being mixed colours described in the corresponding color filling.
5. double-colored rendering intent as claimed in claim 2, it is characterised in that around the original of the colour disk during toning block movement Point rotation, it is described calculate it is described toning block from the initial position be moved to current location point when positional increment the step of wrap Include:
The coordinate of each location point of the motion track of the toning block is obtained, and obtains the origin to the motion track Each location point coordinate vector;
Adjacent vectorial angle between initial position described in cumulative calculation and current location point, to obtain the toning block from institute State positional increment when initial position is moved to the current location point.
6. double-colored rendering intent as claimed in claim 1, it is characterised in that the current location with where the toning block Point draws circle for the center of circle, forms border circular areas, and fill the border circular areas with color of object corresponding to the current location point Step includes:
Judge that the current location point on the colour disk where the toning block whether there is corresponding border circular areas;
If so, the color of border circular areas corresponding to the current location point is replaced with into the color of object;
Justify if it is not, then being drawn using the current location point as the center of circle, form border circular areas, and work as so that color of object filling is described Border circular areas corresponding to the point of front position.
7. one kind takes color method, it is characterised in that applied to the colour disk described in any one in claim 1 to 7, including:
When getting click signal, the coordinate of click location is determined, and the toning block is moved on the colour disk described Location point corresponding to coordinate;
Choose the color of the border circular areas of location point corresponding to the coordinate on the colour disk.
8. a kind of colour disk, it is characterised in that the colour disk is provided with toning block, and the colour disk includes:
Color acquisition module, for when the toning block is in positive movement on the colour disk, obtaining the toning block described First color corresponding to the initial position of colour disk and the second color for obtaining user's selection;
Computing module, each location point of the motion track for traveling through the toning block, is moved according to the toning block Positional increment calculates color increment of first color to second color change, to obtain the toning block in the shifting Color of object corresponding to each location point of dynamic rail mark;
First filling module, drawn and justified as the center of circle using the current location point where the toning block, form border circular areas, and with described Color of object corresponding to the point of current location fills the border circular areas.
9. a kind of readable storage medium storing program for executing, is stored thereon with computer program, it is characterised in that real when the program is executed by processor Now the step of method as described in claim 1 to 7 any one.
10. a kind of computer, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that the side as described in claim 1 to 7 any one is realized during the computing device described program The step of method.
CN201710528493.XA 2017-07-01 2017-07-01 Color wheel, two-color rendering method, color extracting method, readable storage medium and computer Active CN107479839B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710528493.XA CN107479839B (en) 2017-07-01 2017-07-01 Color wheel, two-color rendering method, color extracting method, readable storage medium and computer
PCT/CN2017/103772 WO2019006892A1 (en) 2017-07-01 2017-09-27 Palette, two-color rendering method, color acquisition method, readable storage medium, and computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710528493.XA CN107479839B (en) 2017-07-01 2017-07-01 Color wheel, two-color rendering method, color extracting method, readable storage medium and computer

Publications (2)

Publication Number Publication Date
CN107479839A true CN107479839A (en) 2017-12-15
CN107479839B CN107479839B (en) 2020-11-03

Family

ID=60595336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710528493.XA Active CN107479839B (en) 2017-07-01 2017-07-01 Color wheel, two-color rendering method, color extracting method, readable storage medium and computer

Country Status (2)

Country Link
CN (1) CN107479839B (en)
WO (1) WO2019006892A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113133152A (en) * 2021-04-30 2021-07-16 深圳市爱图仕影像器材有限公司 Lighting device color matching method and device and storage medium
CN113238598A (en) * 2021-04-30 2021-08-10 深圳市爱图仕影像器材有限公司 Lighting device color matching method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321228A (en) * 2007-06-06 2008-12-10 富士施乐株式会社 Color adjustment apparatus, computer-readable medium and color adjustment method
US20110292069A1 (en) * 2010-05-28 2011-12-01 Witt David Joseph RGB Color Mixer
CN102541485A (en) * 2010-10-13 2012-07-04 普驰信息技术有限公司 Color selection graphical user interface
CN105630287A (en) * 2015-12-21 2016-06-01 天脉聚源(北京)教育科技有限公司 Color acquisition method and apparatus
CN105657391A (en) * 2016-01-04 2016-06-08 京东方科技集团股份有限公司 Image processing method and device
US20170011711A1 (en) * 2005-10-03 2017-01-12 Gary Lynn Campbell Computerized, personal-color analysis sytem

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170011711A1 (en) * 2005-10-03 2017-01-12 Gary Lynn Campbell Computerized, personal-color analysis sytem
CN101321228A (en) * 2007-06-06 2008-12-10 富士施乐株式会社 Color adjustment apparatus, computer-readable medium and color adjustment method
US20110292069A1 (en) * 2010-05-28 2011-12-01 Witt David Joseph RGB Color Mixer
CN102541485A (en) * 2010-10-13 2012-07-04 普驰信息技术有限公司 Color selection graphical user interface
CN105630287A (en) * 2015-12-21 2016-06-01 天脉聚源(北京)教育科技有限公司 Color acquisition method and apparatus
CN105657391A (en) * 2016-01-04 2016-06-08 京东方科技集团股份有限公司 Image processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113133152A (en) * 2021-04-30 2021-07-16 深圳市爱图仕影像器材有限公司 Lighting device color matching method and device and storage medium
CN113238598A (en) * 2021-04-30 2021-08-10 深圳市爱图仕影像器材有限公司 Lighting device color matching method and device and storage medium
WO2022227430A1 (en) * 2021-04-30 2022-11-03 深圳市爱图仕影像器材有限公司 Color matching method and apparatus for illumination apparatus, and storage medium
CN113133152B (en) * 2021-04-30 2023-01-24 深圳市爱图仕影像器材有限公司 Lighting device color matching method and device and storage medium

Also Published As

Publication number Publication date
CN107479839B (en) 2020-11-03
WO2019006892A1 (en) 2019-01-10

Similar Documents

Publication Publication Date Title
US5432896A (en) Watercolor simulation in computer graphics
CN107564087B (en) A kind of Three-D linear symbol rendering method based on screen
US7123269B1 (en) Modifying vector objects
CN103793178B (en) Vector graph editing method of touch screen of mobile device
CN107479839A (en) Colour disk, double-colored rendering intent, take color method, readable storage medium storing program for executing and computer
CN110349261B (en) Method for generating three-dimensional thermodynamic diagram based on GIS
CN108762601A (en) Display methods, device and the mobile terminal of application function
CN104915975A (en) Image processing method and system for simulating crayon colored drawing
CN106780659A (en) A kind of two-dimension situation map generalization method and electronic equipment
CN107491522A (en) Switching method and device between a kind of two-dimensional map and three-dimensional map
CN106896997A (en) Slide control control method and device, slide slider
US20240202996A1 (en) Stroke tapestry systems and methods
CN102663802A (en) Game terrain road generating method and device
CN104932858A (en) Method for realizing overlapping display of background map supporting accurate matching and real-time roaming
CN105960631B (en) A kind of method and device carrying out icon arrangement in Android device
US11775159B1 (en) Methods and systems for generating graphical content through easing and paths
CN104346771B (en) A kind of electronic map tiered management approach
CN110427583A (en) The method for vacuating drafting applied to mobile terminal map magnanimity line
CN104392044B (en) Well site device layout design method and system based on 3-D effect pel editor
US20220206676A1 (en) Modifying drawing characteristics of digital raster images utilizing stroke properties
CN103236071A (en) Generation method for stipple effect picture
CN107450873A (en) Colour disk, shading process, readable storage medium storing program for executing and computer equipment
US20200372655A1 (en) Interactive Region Coloring
CN108553902A (en) A kind of transform method of the multi-dimension material based on UE engines
CN106780616B (en) A kind of projector calibrating method based on the mapping of more matrixes

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
GR01 Patent grant
GR01 Patent grant