CN103137095B - The method and apparatus of electronic reading prospect and background is set - Google Patents

The method and apparatus of electronic reading prospect and background is set Download PDF

Info

Publication number
CN103137095B
CN103137095B CN201110376407.0A CN201110376407A CN103137095B CN 103137095 B CN103137095 B CN 103137095B CN 201110376407 A CN201110376407 A CN 201110376407A CN 103137095 B CN103137095 B CN 103137095B
Authority
CN
China
Prior art keywords
control
foreground
background
hue
colour
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.)
Active
Application number
CN201110376407.0A
Other languages
Chinese (zh)
Other versions
CN103137095A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110376407.0A priority Critical patent/CN103137095B/en
Publication of CN103137095A publication Critical patent/CN103137095A/en
Application granted granted Critical
Publication of CN103137095B publication Critical patent/CN103137095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of method and apparatus that electronic reading prospect and background are set, belong to electronic reading technical field.The method comprises: arrange in panel at prospect background the first color selector arranged for controlling hue and luminance, and interface remains for preview area in advance that show preview effect, and the first color selector is provided with foreground control and background colour control; When user is arranged, if the dragging event of foreground control detected, then the hue and luminance of foreground be set to hue and luminance corresponding to this event end position and show; If the dragging event of background colour control detected, then the hue and luminance of background colour be set to hue and luminance corresponding to this event end position and show; The position of foreground control and the position of background colour control do not overlap.This device comprises: initialization module and arrange module.Invention increases the recognition effect of visual element in electronic reading, achieve the Intelligent Matching of background and prospect.

Description

The method and apparatus of electronic reading prospect and background is set
Technical field
The present invention relates to electronic reading technical field, particularly a kind of method and apparatus that electronic reading prospect and background are set.
Background technology
Electronic reading environment is made up of two parts, and one is background, and one is prospect, and the contrast of background and prospect could allow the visual element cognitions recognized by the user such as word, symbol, picture.Current electronic reading device upper part provides and simply self-definedly arranges background and prospect, and user can be arranged background and prospect by arranging the page, to reach the reading environment desired by user.
Existing set-up mode is, when arranging background, user first clicks and arranges button and jump to background and arrange the page and arrange, and is provided with redirect again and gets back to read interface view result; Similarly, be also first arrange the page in prospect to arrange when prospect is set, and then read interface view result is got back in redirect.
But existing set-up mode lacks preview, the setting of background and prospect is definitely independently, is easy to cause background identical with foreground color or close, thus cannot effective recognition visible sensation element, seriously affects the effect of user's reading.
Summary of the invention
The problem that weak effect affects user's reading being set in order to solve background and prospect in existing electronic reading, embodiments providing a kind of method and apparatus that electronic reading prospect and background are set.
On the one hand, a kind of method arranging electronic reading prospect and background, comprising:
In advance the first color selector arranged for controlling hue and luminance is set in panel at the prospect background of electronic reading, and the interface that panel place is set at described prospect background remaining in advance the preview area showing preview effect, described first color selector is provided with foreground control and background colour control;
When user enter described prospect background arrange panel arrange time,
If the dragging event of described foreground control detected, then the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of described foreground control is corresponding, and the foreground after described preview area display is arranged;
If the dragging event of described background colour control detected, then the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of described background colour control is corresponding, and the background colour after described preview area display is arranged;
Wherein, on described first color selector, the position of described foreground control and the position of described background colour control do not overlap;
Described method also comprises:
When user pull described foreground control and background colour control one of them time, carry out collision detection;
If detect that described foreground control and background colour control collide, then calculate by the position of the control collision rift pulled, and using the end position of the position of described collision rift as dragging event;
Wherein, described collision is inelastic collision.
On the other hand, a kind of device arranging electronic reading prospect and background, comprising:
Initialization module, the first color selector arranged for controlling hue and luminance is set in panel for the prospect background in advance at electronic reading, and the interface that panel place is set at described prospect background remaining in advance the preview area showing preview effect, described first color selector is provided with foreground control and background colour control;
Module is set, for enter as user described prospect background arrange panel arrange time, if the dragging event of described foreground control detected, then the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of described foreground control is corresponding, and the foreground after described preview area display is arranged; If the dragging event of described background colour control detected, then the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of described background colour control is corresponding, and the background colour after described preview area display is arranged;
Wherein, on described first color selector, the position of described foreground control and the position of described background colour control do not overlap;
Described device also comprises:
Computing module, for pull as user described foreground control and background colour control one of them time, carry out collision detection, if detect that described foreground control and background colour control collide, then calculate by the position of the control collision rift pulled, and using the end position of the position of described collision rift as dragging event;
Wherein, described collision is inelastic collision.
The beneficial effect that the described method and apparatus arranging electronic reading prospect and background that the embodiment of the present invention provides brings is: the hue and luminance being arranged foreground and background colour by the first color selector, and the position of the position of foreground control and background colour control does not overlap on the first color selector, what achieve foreground and background colour arranges mutual exclusion, ensure that foreground and background colour are not overlapping with the difference ensureing background and prospect, drastically increase the recognition effect of visual element in electronic reading, achieve the Intelligent Matching of background and prospect, and, can live preview foreground and background colour effect is set, improve the Experience Degree that user reads.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram arranging electronic reading prospect and background that one embodiment of the invention provides;
Fig. 2 is the method flow diagram arranging electronic reading prospect and background that another embodiment of the present invention provides;
Fig. 3 is that the prospect background that the embodiment of the present invention provides arranges panel schematic diagram;
Fig. 4 is the control of the first color selector that the embodiment of the present invention provides and the control schematic diagram of the second color selector;
Fig. 5 is the schematic diagram of the reading Foreground selection frame that the embodiment of the present invention provides;
Fig. 6 is the HSL colour model schematic diagram that the embodiment of the present invention provides;
Fig. 7 is six large mass-tone schematic diagrames on the hue circle of the HSL colour model that the embodiment of the present invention provides;
Fig. 8 is the structure drawing of device arranging electronic reading prospect and background that further embodiment of this invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The embodiment of the present invention relates to electronic reading technology, particularly relates to the design of prospect in electronic reading and background.Described prospect refers in electronic reading the content conveying to user, comprises the elements such as word, symbol, picture, is that user identifies and cognitive key element.Described background refers in electronic reading the environment setting off the elements such as word, symbol, picture.Under normal circumstances, the contrast of prospect and background could allow the visual element cognitions recognized by the user such as word, symbol, picture.
See Fig. 1, one embodiment of the invention provides a kind of method arranging electronic reading prospect and background, comprising:
101: in advance the first color selector arranged for controlling hue and luminance is set in panel at the prospect background of electronic reading, and the interface that panel place is set at this prospect background remaining in advance the preview area showing preview effect, this first color selector is provided with foreground control and background colour control.
102: when user enter prospect background arrange panel arrange time,
If the dragging event of foreground control detected, then the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of foreground control is corresponding, and the foreground after preview area display is arranged;
If the dragging event of background colour control detected, then the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of background colour control is corresponding, and the background colour after preview area display is arranged;
Wherein, on the first color selector, the position of foreground control and the position of background colour control do not overlap.
Prospect background in advance at electronic reading in step 101 arranges in panel the first color selector arranged for controlling hue and luminance, can comprise:
Obtaining one group of color is the default RGB array of adopting color base sample, and RGB array is converted to HSL colour;
Generate N number of paintbrush according to HSL colour, use N number of paintbrush to draw line by line on screen successively and obtain colour table, described N is natural number;
Colour table adds two slide blocks respectively as foreground control and background colour control, described foreground control, background colour control and colour table form the first color selector.
The described method that the present embodiment provides, the hue and luminance of foreground and background colour is set by the first color selector, and the position of the position of foreground control and background colour control does not overlap on the first color selector, what achieve foreground and background colour arranges mutual exclusion, ensure that foreground and background colour are not overlapping with the difference ensureing background and prospect, drastically increase the recognition effect of visual element in electronic reading, achieve the Intelligent Matching of background and prospect, and, can live preview foreground and background colour effect is set, improve the Experience Degree that user reads.
See Fig. 2, another embodiment of the present invention provides a kind of method arranging electronic reading prospect and background, comprising:
201: arrange in panel at the prospect background of electronic reading in advance, the first color selector for controlling hue and luminance is set, and for controlling the second color selector of saturation, and the interface that panel place is set at prospect background remains in advance the preview area showing preview effect, wherein, first color selector is provided with foreground control and background colour control, be respectively used to the hue and luminance controlling foreground, and the hue and luminance of background colour, and on the first color selector, the position of foreground control and the position of background colour control do not overlap; Second color selector is provided with control, for controlling the saturation of foreground or background colour.
In the present embodiment, described prospect background arranges panel and comprises the first color selector and the second color selector, and the first color selector is provided with foreground control and background colour control.User can change the hue and luminance of foreground by pulling this foreground control, can change the hue and luminance of background colour by pulling this background colour control.Second color selector is also provided with control, and user can change the saturation of foreground or the saturation of background colour by pulling this control.By the Comprehensive Control of the first color selector and the second color selector, better Color control effect can be realized.
Such as, see Fig. 3, prospect background arranges panel and is made up of the first color selector and the second color selector, and the circle on the first color selector represents foreground control, squarely represent background colour control, the square representative on the second color selector is for controlling the control of saturation.Prospect background arranges above panel and is also reserved with preview area, can show the foreground after arranging and background colour in real time, reach the effect of preview.
In addition, the shape of the control on the second color selector is variable, and when user operation foreground control, its shape is identical with the shape of foreground control, and when user operation background colour control, its shape is identical with the shape of background colour control.Such as, see Fig. 4, during current user operation foreground control, control on this second color selector is circular, identical with the shape of foreground control, when user operation background colour control, the control on this second color selector is square, identical with the shape of background colour control, thus facilitate user to identify and use.
202: when user enter color arrange panel arrange time, judge whether the dragging event of foreground control or the dragging event of background colour control, if the dragging event of foreground control detected, then perform 203; If the dragging event of background colour control detected, then perform 205.
Particularly, the entrance that prospect background arranges panel can be set on interface, when user clicks or length presses this entrance, eject prospect background and panel is set to user, for user, the color of prospect and background is arranged.Described click or long by can be realized by mouse, or realized by finger touch on the touchscreen, the present invention does not limit this.
In addition, whether the operational attribute that prospect background arranges this entrance can also be set first according to user, as judge user current whether be arrange panel to prospect background first to arrange, if arrange first, then the operational attribute of this entrance is set to click or long by, if not arranging first, then the operational attribute of this entrance is set to grow by.
Further, can also arrange on interface and read Foreground selection frame, and the entrance above-mentioned prospect background being arranged panel is arranged in this reading Foreground selection frame, checks and arrange to facilitate user.Wherein, reading Foreground selection frame can enter from the menu read, as shown in Figure 5.There is in read menus on the left figure median surface of Fig. 5 the option reading background, when user clicks this option, just enter and read Foreground selection frame, as shown in the right figure of Fig. 5.This reading Foreground selection frame is rectangular slat shape, wherein, comprise 4 nearest used background colours, first is current background colour, rightmostly square the entrance of panel is set for prospect background, show cross mark on square, user can click or long enter prospect background and arrange panel by this entrance and arrange.
203: the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of foreground control is corresponding, and the foreground after preview area display is arranged, then perform 204.
204: if the dragging event of the control on the second color selector detected, then the saturation of foreground is set to the saturation that the end position of the dragging event of the control on the second color selector is corresponding, and the foreground after preview area display is arranged, user exits prospect background and arranges panel, and flow process terminates.
205: the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of background colour control is corresponding, and the background colour after preview area display is arranged, then perform 206.
206: if the dragging event of the control on the second color selector detected, then the saturation of background colour is set to the saturation that the end position of the dragging event of the control on the second color selector is corresponding, and the background colour after preview area display is arranged, user exits prospect background and arranges panel, and flow process terminates.
In the present embodiment, the prospect of electronic reading and the control of background is order in no particular order, first can adjust foreground, rear adjustment background colour, or first adjust background colour, rear adjustment foreground, the present invention does not limit to this.
In the present embodiment, further, said method can also comprise:
When user pull foreground control and background colour control one of them time, carry out collision detection;
If detect that foreground control and background colour control collide, then calculate by the position of the control collision rift pulled, and using the end position of the position of collision rift as dragging event, correspondingly, the information corresponding according to this end position carries out color setting; Wherein, described collision is inelastic collision, thus reaches foreground control and the exhausted nonoverlapping effect of background colour control, ensure that prospect and background are not homochromy, achieves the Intelligent Matching of prospect and background.
In the present embodiment, further, foreground in said method after preview area display is arranged, can comprise: by the monitor that foreground control is arranged, whether the hue and luminance monitoring foreground changes, if change, then according to change after hue and luminance at preview area display foreground look.
Background colour in said method after preview area display is arranged, can comprise: by the monitor that background colour control is arranged, monitor the hue and luminance of background colour whether to change, if changed, then according to the hue and luminance after changing at preview area display background look.
In the present embodiment, preferably, HSL (tone, brightness and saturation) colour model is adopted to generate the first color selector.See Fig. 6, HSL colour model the point of color description in cylinder, the central shaft value of this cylinder is the white of the black from bottom to top, the grey in the middle of them being; Angle around this axle corresponds to tone H (Hue component), and the distance to this axle corresponds to saturation S, and the distance along this axle corresponds to brightness L.
Wherein, H component representative be human eye institute energy perception color gamut, these distribution of color are on the hue circle of a plane, and span is the central angle of 0 ° to 360 °, and each angle can represent a kind of color.The meaning of tone value is, when not changing light sensation, can change color by rotating hue circle.In actual applications, the large mass-tone of six on hue circle can be used as basic reference: 360 °/0 ° red, 60 ° of Huang, 120 ° of green, 180 ° of green grass or young crops, 240 ° of indigo plants, 300 ° of fuchsins, their being spaced according to 60 ° of central angles on hue circle, as shown in Figure 7.
Particularly, the first color selector for controlling hue and luminance being set in step 201, can specifically comprising:
Preset and adopt color base sample for redness, yellow, green, cyan, blueness and carmetta, obtaining one group of color is adopt the RGB (RedGreenBlue of color base sample, red green blue tricolor) array, and adopt RGB to change the tailor-made algorithm of HSL, this RGB array is changed into corresponding HSL colour.Wherein, the HSL colour be converted to can be buffered in internal memory, so that use when user is arranged next time, all changes when avoiding each user to arrange, thus can raising efficiency.
Generate N number of paintbrush according to the HSL colour after conversion, then use this N number of paintbrush to draw line by line on screen successively, obtain the painting canvas of fade effect, it can be used as the colour table of the first color selector.Preferably, the StrokeWidth optimum configurations of paintbrush can be become a floating number, thus can smooth effect be realized.Wherein, N is natural number, and the number of N can pre-set according to the size of screen.
The colour table of the first color selector adds 2 slide blocks, respectively as foreground control and background colour control, for each slide block sets a property, includes but not limited to: coordinate, state and drawing.Wherein, the corresponding hue and luminance of coordinate, comprises horizontal coordinate and vertical coordinate.State refers to that slide block is currently pressed, pulled in, be lifted etc.Draw and refer to the display mode of slide block, as " circle " or " square " etc. can be shown as.Described colour table and foreground control, background colour control constitute the first color selector.
When the foreground control on user operation first color selector or background colour control, its property value changes thereupon, when there is elastic collision and calculating, its property value also changes thereupon, foreground control or background colour control are shown according to the property value after change, thus completes the setting of user.
In addition, a special monitor can also be registered for each control, be responsible for the attribute change monitoring control, once monitor listens to the attribute change of control, then show accordingly on colour table, thus reach the effect of selected i.e. gained.
Compared with rgb color model, HSL colour model is very friendly to the form of presentation of color, meets very much the mankind and is accustomed to the perception of color.In the present embodiment, adopt the areal model of 2D to represent the 3D effect of HSL, therefore, generation colour table for controlling hue and luminance, generates slider bar as the second color selector for controlling saturation, closer to the visual understanding of people as the first color selector.Wherein, the essence of colour table is made up of the horizontal line of the color of different brightness.
The described method that the present embodiment provides, the hue and luminance of foreground and background colour is set by the first color selector, and the position of the position of foreground control and background colour control does not overlap on the first color selector, what achieve foreground and background colour arranges mutual exclusion, ensure that foreground and background colour are not overlapping with the difference ensureing background and prospect, drastically increase the recognition effect of visual element in electronic reading, achieve the Intelligent Matching of background and prospect, and, can live preview foreground and background colour effect is set, improve the Experience Degree that user reads.In addition, use HSL colour model can allow the work hommization more of colors countenance, contribute to setting up harmonious man-machine interaction relation, improving product is experienced.And regulate mutual intuitively, handled easily, allow color choose more directly perceived, real-time preview effect is full of enjoyment, allows user achieve the function oneself wanted in playing.
See Fig. 8, further embodiment of this invention provides a kind of device arranging electronic reading prospect and background, comprising:
Initialization module 801, the first color selector arranged for controlling hue and luminance is set in panel for the prospect background in advance at electronic reading, and the interface that panel place is set at prospect background remaining in advance the preview area showing preview effect, the first color selector is provided with foreground control and background colour control;
Module 802 is set, for enter as user prospect background arrange panel arrange time, if the dragging event of foreground control detected, then the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of foreground control is corresponding, and the foreground after preview area display is arranged; If the dragging event of background colour control detected, then the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of background colour control is corresponding, and the background colour after preview area display is arranged;
Wherein, on the first color selector, the position of foreground control and the position of background colour control do not overlap.
In the present embodiment, initialization module 801 also for: in advance the second color selector arranged for controlling saturation is set in panel at prospect background; Correspondingly, arrange module 802 also for: after dragging event foreground control being detected, if the dragging event of the control on the second color selector detected, then the saturation of foreground is set to the saturation that the end position of the dragging event of the control on the second color selector is corresponding, and the foreground after preview area display is arranged; Or, after dragging event background colour control being detected, if the dragging event of the control on the second color selector detected, then the saturation of background colour is set to the saturation that the end position of the dragging event of the control on the second color selector is corresponding, and the background colour after preview area display is arranged.
In the present embodiment, further, described device can also comprise:
Computing module, for pull as user foreground control and background colour control one of them time, carry out collision detection, if detect that foreground control and background colour control collide, then calculate by the position of the control collision rift pulled, and using the end position of the position of collision rift as dragging event; Wherein, collide as inelastic collision.
In the present embodiment, initialization module 801 can comprise:
Converting unit, is the default RGB array of adopting color base sample for obtaining one group of color, and this RGB array is converted to HSL colour;
Drawing unit, for generating N number of paintbrush according to this HSL colour, use this N number of paintbrush to draw line by line on screen successively and obtain colour table, this colour table adds two slide blocks respectively as foreground control and background colour control, described foreground control, background colour control and colour table form the first color selector.
In the present embodiment, arranging module 802 can comprise:
Be arranged on the monitor on foreground control, whether change for the hue and luminance monitoring foreground, if change, then according to change after hue and luminance at preview area display foreground look;
Or,
Be arranged on the monitor on background colour control, whether change for the hue and luminance monitoring background colour, if change, then according to change after hue and luminance at preview area display background look.
The described device that the present embodiment provides, the hue and luminance of foreground and background colour is set by the first color selector, and the position of the position of foreground control and background colour control does not overlap on the first color selector, what achieve foreground and background colour arranges mutual exclusion, ensure that foreground and background colour are not overlapping with the difference ensureing background and prospect, drastically increase the recognition effect of visual element in electronic reading, achieve the Intelligent Matching of background and prospect, and, can live preview foreground and background colour effect is set, improve the Experience Degree that user reads.In addition, use HSL colour model can allow the work hommization more of colors countenance, contribute to setting up harmonious man-machine interaction relation, improving product is experienced.And regulate mutual intuitively, handled easily, allow color choose more directly perceived, real-time preview effect is full of enjoyment, allows user achieve the function oneself wanted in playing.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. arrange a method for electronic reading prospect and background, it is characterized in that, described method comprises:
In advance the first color selector arranged for controlling hue and luminance is set in panel at the prospect background of electronic reading, and the interface that panel place is set at described prospect background remaining in advance the preview area showing preview effect, described first color selector is provided with foreground control and background colour control;
When user enter described prospect background arrange panel arrange time,
If the dragging event of described foreground control detected, then the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of described foreground control is corresponding, and the foreground after described preview area display is arranged;
If the dragging event of described background colour control detected, then the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of described background colour control is corresponding, and the background colour after described preview area display is arranged;
Wherein, on described first color selector, the position of described foreground control and the position of described background colour control do not overlap;
Described method also comprises:
When user pull described foreground control and background colour control one of them time, carry out collision detection;
If detect that described foreground control and background colour control collide, then calculate by the position of the control collision rift pulled, and using the end position of the position of described collision rift as dragging event;
Wherein, described collision is inelastic collision.
2. method according to claim 1, is characterized in that, described method also comprises:
In advance the second color selector arranged for controlling saturation is set in panel at described prospect background;
Correspondingly, described in the dragging event of described foreground control detected after, also comprise:
If the dragging event of the control on described second color selector detected, then the saturation of foreground is set to the saturation that the end position of the dragging event of the control on described second color selector is corresponding, and the foreground after described preview area display is arranged;
Or, described in the dragging event of described background colour control detected after, also comprise:
If the dragging event of the control on described second color selector detected, then the saturation of background colour is set to the saturation that the end position of the dragging event of the control on described second color selector is corresponding, and the background colour after described preview area display is arranged.
3. method according to claim 1, is characterized in that, arranging in panel the first color selector arranged for controlling hue and luminance in advance, comprising at the prospect background of electronic reading:
Obtaining one group of color is the default RGB array of adopting color base sample, and described RGB array is converted to HSL colour;
Generate N number of paintbrush according to described HSL colour, use described N number of paintbrush to draw line by line on screen successively and obtain colour table;
Described colour table adds two slide blocks respectively as foreground control and background colour control, described first color selector of described foreground control, background colour control and colour table composition.
4. method according to claim 1, is characterized in that,
Described foreground after preview area display is arranged, comprising:
By the monitor that described foreground control is arranged, monitor the hue and luminance of foreground and whether change, if changed, then according to the hue and luminance after changing at described preview area display foreground look;
Described background colour after preview area display is arranged, comprising:
By the monitor that described background colour control is arranged, monitor the hue and luminance of background colour and whether change, if changed, then according to the hue and luminance after changing at described preview area display background look.
5. arrange a device for electronic reading prospect and background, it is characterized in that, described device comprises:
Initialization module, the first color selector arranged for controlling hue and luminance is set in panel for the prospect background in advance at electronic reading, and the interface that panel place is set at described prospect background remaining in advance the preview area showing preview effect, described first color selector is provided with foreground control and background colour control;
Module is set, for enter as user described prospect background arrange panel arrange time, if the dragging event of described foreground control detected, then the hue and luminance of foreground is set to the hue and luminance that the end position of the dragging event of described foreground control is corresponding, and the foreground after described preview area display is arranged; If the dragging event of described background colour control detected, then the hue and luminance of background colour is set to the hue and luminance that the end position of the dragging event of described background colour control is corresponding, and the background colour after described preview area display is arranged;
Wherein, on described first color selector, the position of described foreground control and the position of described background colour control do not overlap;
Described device also comprises:
Computing module, for pull as user described foreground control and background colour control one of them time, carry out collision detection, if detect that described foreground control and background colour control collide, then calculate by the position of the control collision rift pulled, and using the end position of the position of described collision rift as dragging event;
Wherein, described collision is inelastic collision.
6. device according to claim 5, is characterized in that, described initialization module also for: in advance the second color selector arranged for controlling saturation is set in panel at described prospect background;
Correspondingly, described arrange module also for: after the dragging event described foreground control being detected, if the dragging event of the control on described second color selector detected, then the saturation of foreground is set to the saturation that the end position of the dragging event of the control on described second color selector is corresponding, and the foreground after described preview area display is arranged; Or, after the dragging event described background colour control being detected, if the dragging event of the control on described second color selector detected, then the saturation of background colour is set to the saturation that the end position of the dragging event of the control on described second color selector is corresponding, and the background colour after described preview area display is arranged.
7. device according to claim 5, is characterized in that, described initialization module comprises:
Converting unit, is the default RGB array of adopting color base sample for obtaining one group of color, and described RGB array is converted to HSL colour;
Drawing unit, for generating N number of paintbrush according to described HSL colour, use described N number of paintbrush to draw line by line on screen successively and obtain colour table, described colour table adds two slide blocks respectively as foreground control and background colour control, described first color selector of described foreground control, background colour control and colour table composition.
8. device according to claim 5, is characterized in that, the described module that arranges comprises:
Be arranged on the monitor on described foreground control, whether change for the hue and luminance monitoring foreground, if change, then according to change after hue and luminance at described preview area display foreground look;
Or,
Be arranged on the monitor on described background colour control, whether change for the hue and luminance monitoring background colour, if change, then according to change after hue and luminance at described preview area display background look.
CN201110376407.0A 2011-11-23 2011-11-23 The method and apparatus of electronic reading prospect and background is set Active CN103137095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110376407.0A CN103137095B (en) 2011-11-23 2011-11-23 The method and apparatus of electronic reading prospect and background is set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110376407.0A CN103137095B (en) 2011-11-23 2011-11-23 The method and apparatus of electronic reading prospect and background is set

Publications (2)

Publication Number Publication Date
CN103137095A CN103137095A (en) 2013-06-05
CN103137095B true CN103137095B (en) 2016-01-13

Family

ID=48496845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110376407.0A Active CN103137095B (en) 2011-11-23 2011-11-23 The method and apparatus of electronic reading prospect and background is set

Country Status (1)

Country Link
CN (1) CN103137095B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035665B (en) * 2014-06-13 2017-12-01 Tcl集团股份有限公司 A kind of method and apparatus that desktop icons are carried out with colors countenance
CN104347051A (en) * 2014-06-30 2015-02-11 腾讯科技(深圳)有限公司 Method and system for adjusting screen brightness
CN104317869B (en) * 2014-10-17 2018-11-23 小米科技有限责任公司 Background setting method and device based on instant messaging
CN106896995B (en) * 2015-12-21 2021-06-08 腾讯科技(深圳)有限公司 Wallpaper configuration method and device for mobile terminal
CN106020759A (en) * 2016-05-19 2016-10-12 北京奇虎科技有限公司 Display processing method and device for terminal device, application and operation system
CN106023951B (en) * 2016-06-07 2018-11-13 珠海市魅族科技有限公司 Electronic equipment and its display control program and method
US11948530B2 (en) * 2020-02-26 2024-04-02 Boe Technology Group Co., Ltd. Computer-implemented method for generating gradient color value array, apparatus, and computer-program product thereof
CN113778584A (en) * 2021-08-04 2021-12-10 瑞芯微电子股份有限公司 Method for independently controlling application background color and storage device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035990A (en) * 2009-09-30 2011-04-27 株式会社日立制作所 Method of color customization of content screen
CN102087578A (en) * 2009-12-02 2011-06-08 精工爱普生株式会社 Color designation control device and color designation control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029864A1 (en) * 2009-07-30 2011-02-03 Aaron Michael Stewart Touch-Optimized Approach for Controlling Computer Function Using Touch Sensitive Tiles

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035990A (en) * 2009-09-30 2011-04-27 株式会社日立制作所 Method of color customization of content screen
CN102087578A (en) * 2009-12-02 2011-06-08 精工爱普生株式会社 Color designation control device and color designation control method

Also Published As

Publication number Publication date
CN103137095A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN103137095B (en) The method and apparatus of electronic reading prospect and background is set
CN104221359B (en) Color modulator for color segment
CN104217670B (en) Pixel structure and display device
WO2005084405A3 (en) System for delivering and enabling interactivity with images
CN106935180A (en) It is a kind of to control matrix so as to the implementation method for controlling display fast intelligent to open a window
JP2006157892A5 (en)
CN103069373A (en) Two-dimensional slider control
CN105892839B (en) A kind of screenshot processing method and device based on instant messaging tools
CN103856823A (en) Interface adjustment method, device and terminal
CN117197261B (en) Atmosphere lamp equipment, color taking method thereof, corresponding device and medium
CN202363037U (en) Color display screen
CN110473499A (en) Gamma electric voltage adjustment method, display panel and display device for display panel
CN103456280A (en) Method for displaying RGB color image
CN104766549A (en) Mobile equipment and method capable of expanding lighting effect of display screen
CN102354476A (en) Display panel capable of improving color cast
CN102447913B (en) Color migration processing method and system
CN107180453A (en) The edit methods and device of character face's model
CN102496354B (en) Pixel data conversion method and device for triangular arrangement display panel
CN206039629U (en) Intelligence floor show machine
CN107610186A (en) A kind of image processing method and device
CN203325323U (en) City planning photoelectric sand table system
CN209401004U (en) Display device and system
CN107256164A (en) The optimization processing algorithm of self-defined shape progress bar under a kind of Mac
CN102724581B (en) Method for realizing pixel superposition based on 2D (two-dimensional) image accelerator
CN209103794U (en) Pixel driving circuit and display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant