WO2020199970A1 - 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质 - Google Patents

接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质 Download PDF

Info

Publication number
WO2020199970A1
WO2020199970A1 PCT/CN2020/080818 CN2020080818W WO2020199970A1 WO 2020199970 A1 WO2020199970 A1 WO 2020199970A1 CN 2020080818 W CN2020080818 W CN 2020080818W WO 2020199970 A1 WO2020199970 A1 WO 2020199970A1
Authority
WO
WIPO (PCT)
Prior art keywords
color value
interface
light effect
model
lighting effect
Prior art date
Application number
PCT/CN2020/080818
Other languages
English (en)
French (fr)
Inventor
江耿平
林颀
Original Assignee
珠海市学思电子科技有限公司
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 珠海市学思电子科技有限公司 filed Critical 珠海市学思电子科技有限公司
Publication of WO2020199970A1 publication Critical patent/WO2020199970A1/zh

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21SNON-PORTABLE LIGHTING DEVICES; SYSTEMS THEREOF; VEHICLE LIGHTING DEVICES SPECIALLY ADAPTED FOR VEHICLE EXTERIORS
    • F21S8/00Lighting devices intended for fixed installation
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • the invention relates to a control and display method of a visual interface, in particular to a lighting effect simulation method, a computer device and a computer-readable storage medium for accessing equipment in the interface.
  • Mechanical keyboards are widely used in the IT field, e-sports field, and word media field. After meeting the keyboard touch requirements, users also pursue the lighting effects on the keyboard. In the field of games and e-sports, players are pursuing the comprehensiveness of lighting effects. Not only on mechanical keyboards, but also on other access devices such as mice, mouse pads, earphones and host casings, there are LEDs with 256 levels of color value change. Light group, so that players can get a more overall and spatial light effect experience during the game.
  • the lighting effects of the existing access equipment are defined, adjusted and simulated by software.
  • the software has an interface in which all connected devices are displayed in the simulation image of a plane model.
  • the software background calculates the number of virtual LED lights on the plane model, and arranges and pre-sets the number of virtual LED lights in rows and columns on the device. Match the lighting effect model set, and finally realize the lighting effect simulation on the plane model.
  • the problem with the existing lighting effect simulation method is that the keys on the mechanical keyboard are of different sizes instead of neatly arranged, and there are intervals between multiple access devices.
  • the lighting effect model covers the interface according to the number of LED lights. Later, if the third key on the keyboard is arranged in steps, the system recognizes it as the color value unit on the same straight line in the lighting effect model, such as the LED lights and the mouse of the keyboard with larger intervals. LED lights, the system recognizes the two LED lights as two adjacent color value units in the lighting effect model. Finally, the simulated lights presented in the simulation interface and the dynamic effects of the actual lights on the connected device are distorted. To ensure the dynamic integrity of the lighting effect, but also unable to guarantee the overall sense of the lighting effect and the sense of space.
  • the first object of the present invention is to provide a method for simulating the lighting effect in the interface of the access device that guarantees the dynamic integrity of the lighting effect and the overall sense of the lighting effect.
  • the second object of the present invention is to provide a computer device that implements the above-mentioned method for simulating lighting effects.
  • the third object of the present invention is to provide a computer-readable storage medium for realizing the above-mentioned method of lighting effect simulation.
  • the method for simulating lighting effects of an access device in an interface includes a display step, displaying a plane model corresponding to the access device in the interface; and an identification step, identifying according to the two-dimensional coordinate system of the interface
  • the two-dimensional coordinate data of the color value unit in the plane model is to generate the color value change rule according to the acquired setting parameters
  • the light effect simulation step is to update the color value according to the color value change rule and the two-dimensional coordinate data corresponding to the color value unit The color value of the cell.
  • a further solution is that, in the light effect simulation step, only the color value units that have received the color value change selection instruction in the rule generation step are updated for color value.
  • the acquired setting parameters include a preset lighting effect model; the lighting effect simulation step includes updating the color value of the color value unit according to the lighting effect model and the two-dimensional coordinate data.
  • the rule generation step includes identifying one or more color value unit groups according to the acquired setting parameters, and the color value unit group includes one or more color value units that have acquired color value change selection instructions;
  • the setting parameters of identify the preset lighting effect model corresponding to each color value unit group.
  • the rule generation step further includes identifying one or more color value layers according to the acquired setting parameters, and each color value layer includes one or more color value unit groups; and identifying each color according to the acquired setting parameters.
  • the transparency parameters of the value layer generate color value change rules according to the lighting effect model and transparency parameters.
  • a further solution is that, in the rule generation step, it also includes generating the lighting effect model limit according to the two-dimensional coordinate data of the color value unit in the color value unit group; adjusting the lighting effect model corresponding to the color value unit group in the interface according to the lighting effect model limit The display span in.
  • a further solution is that, in the rule generation step, it further includes matching the light effect center of the light effect model with the color value unit that has obtained the light effect center selection instruction.
  • the light effect simulation step further includes sending a control signal to the access device, and updating the color value of the LED lamp on the access device according to the color value change rule and the two-dimensional coordinate data corresponding to the color value unit.
  • a further solution is that in the display step, multiple plane models are displayed in the interface, and each plane model corresponds to a relatively independent access device; in the identification step, the inner color of each plane model is identified according to the two-dimensional coordinate system of the interface The two-dimensional coordinate data of the value unit.
  • the computer device includes a processor, and the processor is used to implement the above-mentioned light effect simulation method when executing the computer program stored in the memory.
  • the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to realize the above-mentioned light effect simulation method.
  • the two-dimensional coordinate system of the interface is used to identify the two-dimensional coordinate data of each color value unit on each plane model, and in the lighting effect simulation step
  • the two-dimensional coordinate data of each color value unit changes the color value. Even if multiple color value units on different plane models on the interface are staggered, the initial color value and color value of the corresponding position in the lighting effect model can be correctly identified. Changing the rules, even if the relative positions of multiple access devices are adjusted arbitrarily, the dynamic integrity, overall sense and sense of space of the lighting effect can be guaranteed.
  • the user can click one or more virtual keys from the plane model corresponding to the mechanical keyboard.
  • the lighting effect simulation step only the selected simulated key produces lighting effects, and the unselected The button is always dark. This setting makes the customization freedom of keyboard lighting effects greater.
  • the user can click on several virtual keys and set them to use the first lighting effect model to generate lighting effects, while clicking on other virtual keys and set them to be the second lighting effect
  • the model produces lighting effects, and so on, can simultaneously form different dynamic lighting effects in different areas on the mechanical keyboard to enhance visual impact.
  • the color value units in two or more color value layers at the same time update the color value according to the transparency parameters of multiple color value layers and the color value data of multiple lighting effect models, and finally can be displayed in the interface Realize the simultaneous display of two or more layers of dynamic lighting effects, and generate dynamic lighting effects with layered effects.
  • the lighting effect model is a lighting effect model that realizes periodic colorful changes in the x-axis direction.
  • the plane models corresponding to the two occupy only half of the interface size in the x-axis direction. If the boundary of the interface is used as the boundary of the lighting effect model to cover the lighting effect model on the interface, the colorful changes of the lighting effect model in the x-axis direction cannot be completely displayed on the two plane models; if the color value unit group is set on the plane model Regenerating the limits of the lighting effect model in multiple color value units can ensure that the colorful changes of the lighting effect model in the x-axis direction are completely reflected on the two plane models, further ensuring the dynamic integrity of the lighting effect.
  • the user can customize the center position of the lighting effect model, so that the same lighting effect model can produce lighting effects with different sense of space and overall sense.
  • multiple connected devices perform light effect testing at the same time, and the user can further confirm whether the adjusted light effect meets their own visual requirements, and facilitate the next adjustment.
  • the color value units in multiple plane models recognize their two-dimensional coordinate data in the same two-dimensional coordinate system. After the color value units of multiple plane models are covered by the lighting effect model, multiple color value units can be changed based on the same lighting effect model.
  • the color value of the color value unit on the plane model realizes the linkage between the dynamic effects of LED lights on multiple access devices.
  • FIG. 1 is a connection block diagram of the keyboard lighting effect control system in the embodiment of the lighting effect simulation method of entering the device in the interface of the present invention.
  • FIG. 2 is a flowchart of an embodiment of a method for simulating lighting effects in an interface of an access device according to the present invention.
  • FIG. 3 is a schematic diagram of the interface in the first state of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 4 is a schematic diagram of the interface of dragging a plane model in the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 5 is a schematic diagram of a two-dimensional coordinate system of the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 6 is a first schematic diagram of the lighting effect model in the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 7 is a second schematic diagram of the lighting effect model in the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 8 is a first schematic diagram of the lighting effect simulation in the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 9 is a schematic diagram of a color value layer in an embodiment of a method for simulating lighting effects in an interface of an access device according to the present invention.
  • FIG. 1 is a connection block diagram of the keyboard lighting effect control system in the embodiment of the method for simulating lighting effects in the interface of the device according to the present invention.
  • the keyboard lighting effect control system is used to control the lighting effects of the keyboard RGB lights to achieve lighting effects.
  • the keyboard lighting effect control system includes a single-chip microcomputer 91 inside the keyboard, a driver chip 92, and multiple RGB lights 93 arranged on the keyboard surface.
  • a circle is set on the periphery of the keyboard surface A plurality of RGB lamps 93, and the driving chip 92 is connected between the single chip computer 91 and the RGB lamps 93.
  • the driver chip 92 is an IS31FL3731 chip, and the RGB lamp 93 is an LED lamp.
  • Each RGB lamp 93 has three colors of R, G, and B. Each color corresponds to an 8-bit register in the driver chip.
  • Each RGB lamp 93 can be written There are a total of 256 color values from 0 to 255.
  • FIG. 2 is a flowchart of an embodiment of a method for simulating lighting effects of an access device in an interface of the present invention
  • FIG. 3 is a first state of an embodiment of a method for simulating lighting effects in an interface of an access device of the present invention
  • Interface 100 is a visual interface displayed on a computer monitor. It is now connected to a mechanical keyboard, mouse, mouse pad, and headset through the USB interface of the computer, or the mechanical keyboard, mouse, mouse pad, and headset are connected to the computer system through Bluetooth communication. in.
  • the switch device of each button on the mechanical keyboard is equipped with an RGB LED light with 256 levels of color value, and the outer circumference of the mechanical keyboard is provided with a circle of LED lights composed of multiple RGB LED lights; the outer circumference of the mouse There is a circle of LED lights composed of multiple RGB LED lights, and a circle of LED lights composed of multiple RGB LED lights is set around the outer periphery of the mouse pad; a ring of LED lights are provided on each earmuff of the headset
  • the lamp group, each annular LED lamp group includes a plurality of RGB LED lamps.
  • step S1 After connecting the access device to the computer, the computer system executes step S1 to obtain the access device information.
  • the system obtains relevant information about the mechanical keyboard, mouse, mouse pad, and headset respectively, and the relevant information includes product model information. Then the system executes step S2. According to the relevant information about the mechanical keyboard, mouse, mouse pad, and headset obtained in step S1, the system reads the pre-stored keyboard plane models that match the mechanical keyboard, mouse, mouse pad, and headset respectively. 10 , The mouse plane model 20, the mouse pad plane model 30 and the earphone plane model 40, and then step S3 is executed to display the keyboard plane model 10, the mouse plane model 20, the mouse pad plane model 30 and the earphone plane model 40 in the interface 100 .
  • the plane model Since the plane model is identified and displayed according to the access device information, the plane model has color value units corresponding to the number and position of the LED lights on the external device.
  • each virtual button 12 on the keyboard plane model 10 serves as A color value unit with a controllable change in color value
  • the outer periphery of the keyboard plane model 10 also has a virtual LED lamp group 11 surrounded by a plurality of color value units.
  • the outer periphery of the mouse plane model 20 has a circle of virtual LED light groups 21 composed of multiple color value units
  • the outer periphery of the mouse pad plane model 30 has a circle of virtual LED light groups 31 composed of multiple color value units.
  • each earmuff of the earphone plane model 40 is provided with a ring-shaped virtual LED light group 41 composed of multiple color value units.
  • FIG. 4 is a schematic diagram of an interface of dragging a plane model in an embodiment of a method for simulating lighting effects in an interface of an access device of the present invention.
  • the user can drag the plane model with the mouse to adjust the position of each plane model in the interface 100.
  • the mouse is used to drag the keyboard plane model and pan to the lower right of the viewing angle shown in FIG. 4, and then drag the mouse plane model 20 and pan to the upper left of the viewing angle shown in FIG.
  • the distance between 10 and the mouse plane model 20 is adjusted to what the user thinks is closer to the distance when the access device is placed in reality.
  • FIG. 5 is a schematic diagram of the interface two-dimensional coordinate system of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • FIG. 6 is a first schematic diagram of the lighting effect model in the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • the system executes step S5 to generate a color value change rule according to the acquired setting parameters.
  • the color value change rule is a general rule that is finally presented on the interface 100 so that the color value of each selected color value unit changes according to time frequency.
  • the setting parameters that affect the color value change rule include the color value layer, the transparency of the color value layer, the color value unit group, the pre-stored light effect model and the change speed of the light effect model, etc.
  • the above setting parameters can be set in the interface 100. Input or select from the interactive window on the setting interface other than.
  • the user can click the "Select All” button in the setting interface to select all color value units in the interface 100, or click the “Select All” button again to deselect all color value units in the interface 100 Then use the mouse to click the color value unit on the plane model to select the color value change of the color value unit.
  • the system only updates the color value of the color value unit that has obtained the color value change selection instruction.
  • click the "Select All” button in the setting interface to select all color value units in the interface 100 click the preset "Colorful Wave (Horizontal)" in the lighting effect model selection window of the setting interface "Effect, other setting parameters are defaulted.
  • the color value change rule is generated.
  • the lighting effect model 200 of "Colorful Wave (Horizontal)" is covered in the interface 100 with the boundary of the interface 100 as the boundary.
  • the lighting effect model 200 has multiple dividing lines, and a color value area is formed between two adjacent dividing lines, such as dividing line 202 and dividing line A color value area c is formed between 203; and when the light effect model 200 covers the interface 100 with the boundary of the interface 100 as the boundary, the two-dimensional coordinate system 101 of the interface 100 has a color value area in each color value area on the light effect model 200 Fix a set of disjoint coordinate points.
  • the system can identify the specific location of each color value unit by comparing the two-dimensional coordinate data of each color value unit on the plane model with the coordinate point collection of the color value area. Which color value area.
  • the virtual "Esc" key 121 and the virtual LED light group 411 on the left side of the headset are both located in the color value area c, and the virtual LED light group 21 on the mouse plane model 20 is located between the dividing line 207 and the dividing line 208.
  • the limited color value area h, and the virtual LED light group 31 on the mouse pad plane model 30 spans the color value area g, the color value area h, the color value area i, and the color value area j.
  • the user can also customize the position of the light effect center of the "Colorful Wave (Horizontal)" lighting effect model 200 in the interface 100 before covering the "Colorful Wave (Horizontal)” lighting effect model 200 on the interface 100.
  • the light effect center of "Colorful Wave (Horizontal)” is located in the color value area f.
  • click the virtual LED light group 21 on the plane model 20 of the mouse in the interface 100 The color value area f is matched to the virtual LED lamp group 21 to form a different color value change rule. If the lighting effect model selected by the user is a lighting effect model about the rotating effect, the customization of the lighting effect center will have a greater impact on the lighting effect.
  • the user clicks the virtual button "Start lighting effect simulation" in the setting interface, and the system executes the lighting effect simulation step S6.
  • the color value of each color value unit is updated at a fixed time frequency.
  • the lighting effect model has included the initial color value of each coordinate point and the color value change law of each coordinate point in the preset color value areas. Take the "colorful wave (horizontal)" lighting effect as an example, the internal phase The dividing line between adjacent color value areas is a winding curve.
  • a color value area inherits the color value of its previous color value area in the current time frame in the next time frame, so that the overall color value gradually moves along the two-dimensional coordinate system 101
  • the x-axis of is advancing upwards, finally presenting the visual effect of wave washing.
  • each color value unit on the keyboard plane model 10 the mouse plane model 20, the mouse pad plane model 30, and the headset plane model 40 has unique two-dimensional coordinate data on the two-dimensional coordinate system 101, regardless of the keyboard plane model 10, the mouse How to adjust the spacing between the plane model 20, the mouse pad plane model 30, and the headset plane model 40?
  • the system compares the updated two-dimensional coordinate data of each color value unit with the lighting effect model, and re-identifies each color value unit The color value area to which it belongs.
  • the lighting effect simulation method based on the interface two-dimensional coordinate system in the present invention can correctly identify the initial color value and color value change rule of the corresponding position of the color value unit in the lighting effect model, even if the relative positions of multiple access devices are adjusted arbitrarily , Can ensure the dynamic integrity, overall sense and sense of space of the lighting effect.
  • FIG. 7 is a second schematic diagram of the lighting effect model in the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • the user can also click on the virtual button "Proportion Adaptation" in the setting interface to press the display span of the lighting effect model Scale down.
  • the "proportion" is determined according to the outer contour of the lighting effect model and the distribution of color value units that have obtained the color value change selection instruction.
  • the "Colorful Wave (Horizontal)" lighting effect model has a rectangular outer periphery, and all the color value units in the interface 100 have been selected by clicking the "Select All” virtual button.
  • the system judges to generate the minimum external environment based on the virtual LED lamp group 11 of the keyboard plane model 10, the virtual LED lamp group 31 of the mouse pad plane model 30, and the virtual LED lamp group 41 on the headset plane model 40.
  • a rectangle 202, and the minimum external rectangle 202 is used as the limit of the lighting effect model of the "colorful wave (lateral)" lighting effect model.
  • the lighting effect model 200 is scaled down and covers the rectangular area surrounded by the minimum external rectangle 202.
  • the color value area a to the color value area j arranged in the x-axis of the lighting effect model 200 all have color value units to obtain the color value change selection instruction.
  • the dynamic integrity of "wave (lateral)" is better.
  • the user Before performing step S5, the user can also select any one or more color value units in the interface, and click the virtual button "create color value unit group" in the setting interface, the system is getting the selection of one or more color value units After the instruction and the selected instruction of "create color value unit group", the one or more color value units are recognized as a color value unit group.
  • FIG. 8 is a first schematic diagram of the lighting effect simulation in the interface of the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • the system recognizes the virtual "A" key 122, virtual "S” key 123, virtual “D” key 124 and virtual “W” key 125 in the keyboard plane model 10 selected by the user as the first color Value unit group, the user selects the colorful wave lighting effect model for the first color value unit group; the system selects the virtual "left” key 126, virtual “down” key 127 and virtual “direction” in the keyboard plane model 10 selected by the user
  • the "right” key 128 and the virtual "up” key 129 are identified as the second color value unit group.
  • the user selects the colorful rotating lighting effect model for the second color value unit group; the system selects the virtual LED light on the mouse plane model 20 selected by the user Group 21 is recognized as the third color value unit group, and the user selects the breathing light effect model for the third color value unit group; finally, the system recognizes the virtual LED light group 41 on the headset plane model 40 selected by the user as the fourth color value unit Group, and the user selects the constant light effect model for the fourth color value unit group.
  • step S5 when the system executes step S5, it generates color value change rules according to the above settings.
  • step S6 the first color value unit group displays colorful wave lighting effects, while the second color value unit group displays colorful rotating lighting effects.
  • the third color value unit group displays the breathing light effect, while the fourth color value unit group displays the constant light effect. That is, in the interface 100, different dynamic lighting effects can be formed between the plane models, and even between different areas on the plane models, to enhance the visual impact.
  • the user can create one or more "color value layers" in the setting interface. If multiple color value layers are created, the transparency parameters of each color value layer can be further set.
  • the rule generation step S5 The system generates the final color value change rule according to the color value change rule of each color value layer and the transparency parameter of each color value layer.
  • the color value layer includes one or more color value unit groups described above, and each color value unit group has an independent lighting effect model and setting parameters.
  • Figure 9 is a schematic diagram of the color value layer in the embodiment of the method for simulating lighting effects in the interface of the access device of the present invention.
  • the figure includes a schematic diagram of the lighting effect simulation of the first color value layer 810 on the keyboard plane model.
  • the first color value layer 810 has a first color value unit group 811 and a second color value unit group 812.
  • the first color value unit group 811 includes five letter virtual keys in the main keyboard area, and the second color value unit group 812 includes " There are four virtual buttons “up”, “down”, “left” and “right”.
  • the lighting effect model set by the first color value unit group 811 is a colorful rotating lighting effect model, and the second color value unit group 812 is set
  • the predetermined lighting effect model is the breathing lighting effect model; the second color value layer 820 has only the third color value unit group 821, and the third color value unit group 821 includes two virtual keys and four virtual letters in the main keyboard area. Press the button, the lighting effect model set by the third color value unit group 821 is a colorful wave (horizontal) lighting effect model.
  • Set the transparency parameter of the first color value layer 810 to 60%, and set the transparency parameter of the second color value layer to 40%.
  • the first color value layer 810 and the second color value layer 820 are superimposed to generate the final color value change rule 830. It can be seen from the color value change rule 830 that the first color value unit group 811 and the first color value unit group 811 of the first color value layer 810 are The color value units corresponding to the four letter virtual keys between the third color value unit group 821 of the two color value layer 820 overlap in the lighting effect, and the color values of these color value units need to be recalculated at this time.
  • the color value unit 83 belongs to the first color value unit group 811 of the first color value layer 810, and the RGB values of the colorful rotating lighting effect model in this time frame are R 1 , G 1 and B 1 , and the color value The unit 83 belongs to the third color value unit group 821 of the second color value layer 820.
  • the RGB values of the colorful wave (lateral) lighting effect model in this time frame are R 2 , G 2 and B 2 respectively .
  • the last color The RGB value of the value unit 83 in this time frame is:
  • R R 1 ⁇ 60%+R 2 ⁇ 40%
  • G G 1 ⁇ 60%+G 2 ⁇ 40%
  • the R values corresponding to the first 1, 2...n color value layers are R 1 , R 2 ... R n
  • the G values corresponding to the first 1, 2...n color value layers are G 1 , G 2 ... G n
  • the B values corresponding to the first 1, 2...n color value layers are B 1 , B 2 ... ...B n
  • the transparency coefficients of the first 1, 2...n color value layers are respectively a 1 , a 2 ...a n
  • the RGB value of the color value unit is:
  • R R 1 ⁇ a 1 +R 2 ⁇ (1-a 1 )a 2 + whilR n ⁇ [(1-a 1 )(1-a 2 ) whil(1-a n-1 )a n ]
  • G G 1 ⁇ a 1 +G 2 ⁇ (1-a 1 )a 2 + whilG n ⁇ [(1-a 1 )(1-a 2 ) whil(1-a n-1 )a n ]
  • B B 1 ⁇ a 1 +B 2 ⁇ (1-a 1 )a 2 + whilB n ⁇ [(1-a 1 )(1-a 2 ) whil(1-a n-1 )a n ]
  • the color value unit in two or more color value layers updates the color value according to the transparency parameters of multiple color value layers and the color value data of multiple lighting effect models, and finally can realize two or more layers of dynamics on the entire interface Synchronous display of lighting effects, thereby generating dynamic lighting effects with layered effects.
  • the single-chip microcomputer 91 while performing the light effect simulation step S6, the single-chip microcomputer 91 also sends a control signal to the driving chip 92 in the access device, so that each RGB lamp 93 on the access device is generated according to the rules in step S5
  • the generated color value change rule and the two-dimensional coordinate data corresponding to the color value unit update the color value.
  • the light effect test of the connected device is performed while the software is performing the light effect simulation. The user can further confirm whether the adjusted light effect meets their own requirements. Visual requirements are convenient for the next adjustment.
  • the computer device of the present invention may be a device including a processor and a memory, such as a single-chip microcomputer including a central processing unit.
  • the processor is used to implement the steps of the method for simulating the lighting effects of the access device in the interface when executing the computer program stored in the memory, including a display step, an identification step, a rule generation step, and a lighting effect simulation step.
  • the so-called processor can be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.); the storage data area may store Data (such as audio data, phone book, etc.) created based on the use of mobile phones.
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, smart media cards (SMC), and secure digital (SD) cards , Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the computer-readable storage medium of the present invention may be any form of storage medium that can be read by the processor of a computer device, including but not limited to non-volatile memory, volatile memory, ferroelectric memory, etc., computer-readable storage
  • a computer program is stored on the medium.
  • the processor of the computer device reads and executes the computer program stored in the memory, it can realize the steps of the method for simulating the lighting effect in the interface of the access device, including the display step, the identification step, Rule generation step and lighting effect simulation step.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
  • the present invention can have various changes and modifications, for example, in the rule generation step
  • the “proportion adaptation” adjustment of the lighting effect model can not only be performed according to the smallest outer rectangle of multiple color value units to obtain the color value change selection instruction
  • the Chinese invention patent application with application number CN201810476398.4 the disclosed keyboard
  • the lighting effect control method records a lighting effect model that realizes the colorful rotating lighting effect of keyboard LED lights, and records a "scale adaptation" of a colorful rotating lighting effect model based on a two-dimensional coordinate system and using the smallest external ellipse to adjust the circumferential layout "Adjustment”, this "proportion adaptation” adjustment method is also applicable to the adjustment of the limit of the lighting effect model in the interface by the system in the present invention. Any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
  • the lighting effect simulation method of the access device in the interface of the present invention can be applied to the computer.
  • the access device with LED lights such as keyboard, mouse and earphone
  • the application program on the computer is run, Perform the lighting effect simulation method of the connected device in the interface, display the two-dimensional model associated with the connected device in the interface, and perform the lighting effect simulation display on the two-dimensional model.
  • the processor of the computer is used to implement the above-mentioned light effect simulation method when the computer program stored in the memory is executed, and the above-mentioned light effect simulation method is implemented when the computer program is executed by the processor of the computer.
  • the display interface of the connected device is based on the two-dimensional coordinates.
  • the system recognizes the two-dimensional coordinate data of each color value unit on each plane model, and according to the two-dimensional coordinates of each color value unit in the lighting effect simulation step The data changes the color value. Even if multiple color value units on different plane models on the interface are randomly arranged, the initial color value and color value change rule of the corresponding position in the lighting effect model can be correctly identified, even if multiple connections are arbitrarily adjusted.
  • the relative position of the input equipment can ensure the dynamic integrity of the lighting effect, the sense of integrity and the sense of space.

Landscapes

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

Abstract

本发明提供一种接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质,灯效模拟方法包括显示步骤,于界面中显示与接入设备对应的平面模型;识别步骤,根据界面的二维坐标系识别平面模型内色值单元的二维坐标数据;规则生成步骤,根据获取的设置参数生成色值变化规则;灯效模拟步骤,根据色值变化规则和色值单元对应的二维坐标数据更新色值单元的色值。计算机装置执行计算机程序可实现灯效模拟方法,计算机可读存储介质的程序被读取时可实现灯效模拟方法。利用界面的二维坐标系识别每个色值单元的二维坐标数据,正确识别每个色值单元的色值变化规则,任意调节接入设备之间的相对位置也能保证灯效的动态完整性,整体感和空间感。

Description

接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质 技术领域
本发明涉及可视界面的控制和显示方法,具体涉及一种接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质。
背景技术
机械键盘在IT领域、电竞领域以及字媒体领域使用广泛,在满足键盘敲击手感要求后,使用者对键盘上的灯效也有所追求。在游戏、电竞领域上,玩家们追求灯效的全面性,不单在机械键盘上,如鼠标、鼠标垫、耳机和主机外壳等其余接入设备上均设有具有256级变化色值的LED灯组,从而使玩家在游戏时得到更具整体感和空间感的灯效体验。
现有的接入设备灯效通过软件进行定义、调整和模拟显示。软件具有界面,接入设备均在该界面中以平面模型的模拟形象显示,软件后台计算平面模型上虚拟LED灯的数量,并根据设备上在行和列上虚拟LED灯的数量排布与预设的灯效模型进行匹配,最后在平面模型上实现灯效模拟。
技术问题
现有的该种灯效模拟方法存在的问题是,机械键盘上按键大小各异而非整齐排列,同时多个接入设备间具有间隔,灯效模型根据LED灯的数量排布序覆盖到界面后,如键盘上每行第三个按键组成的列成阶梯排布,但系统则将其识别为灯效模型中同一直线上的色值单元,又如间隔较大的键盘的LED灯和鼠标的LED灯,系统识别该两个LED灯为灯效模型中相邻的两个色值单元,最后在模拟界面中呈现的模拟灯光以及接入设备上的实际灯光的动态效果均产生畸变,无法保证灯效的动态完整性,更无法保证灯效的整体感和空间感。
技术解决手段
本发明的第一目的在于提供一种保证灯效动态完整性和灯效整体感的接入设备于界面中的灯效模拟方法。
本发明的第二目的在于提供一种实现上述灯效模拟方法的计算机装置。
本发明的第三目的在于提供一种实现上述灯效模拟方法的计算机可读存储介质。
为了实现上述第一目的,本发明提供的接入设备于界面中的灯效模拟方法包括显示步骤,于界面中显示与接入设备对应的平面模型;识别步骤,根据界面的二维坐标系识别平面模型内色值单元的二维坐标数据;规则生成步骤,根据获取的设置参数生成色值变化规则;灯效模拟步骤,根据色值变化规则和色值单元对应的二维坐标数据更新色值单元的色值。
进一步的方案是,灯效模拟步骤中,仅对在规则生成步骤中已获取色值变化选定指令的色值单元进行色值更新。
进一步的方案是,获取的设置参数包括预设的灯效模型;灯效模拟步骤中包括根据灯效模型和二维坐标数据更新色值单元的色值。
进一步的方案是,规则生成步骤中,包括根据获取的设置参数识别一个或多个色值单元组,色值单元组包括一个或多个已获取色值变化选定指令的色值单元;根据获取的设置参数识别每个色值单元组所对应的预设的灯效模型。
进一步的方案是,规则生成步骤中,还包括根据获取的设置参数识别一个或多个色值层,每个色值层包括一个或多个色值单元组;根据获取的设置参数识别每个色值层的透明度参数,根据灯效模型和透明度参数生成色值变化规则。
进一步的方案是,规则生成步骤中,还包括根据色值单元组内色值单元的二维坐标数据生成灯效模型界限;根据灯效模型界限调整该色值单元组对应的灯效模型在界面中的显示跨度。
进一步的方案是,规则生成步骤中,还包括将灯效模型的灯效中心匹配于已获取灯效中心选定指令的色值单元。
进一步的方案是,灯效模拟步骤中,还包括向所述接入设备发送控制信号,根据色值变化规则和色值单元对应的二维坐标数据更新接入设备上LED灯的色值。
进一步的方案是,显示步骤中,于界面中显示多个平面模型,每个平面模型与相对独立的一个接入设备对应;识别步骤中,根据界面的二维坐标系识别每个平面模型内色值单元的二维坐标数据。
为了实现上述第二目的,本发明提供的计算机装置包括处理器,处理器用于执行存储器中存储的计算机程序时实现上述的灯效模拟方法。
为了实现上述第三目的,本发明提供的计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述的灯效模拟方法。
有益效果
接入设备于界面中的灯效模拟方法中,在识别步骤中,利用界面的二维坐标系识别每个平面模型上每个色值单元的二维坐标数据,并在灯效模拟步骤中根据每个色值单元的二维坐标数据改变色值,界面上不同平面模型上多个色值单元之间即使错落布置,也能正确识别其在灯效模型中对应位置的初始色值和色值变化规则,即使任意调节多个接入设备的相对位置,均能保证灯效的动态完整性,整体感和空间感。
进一步地,以机械键盘为例,用户可从机械键盘对应的平面模型点选一个或多个虚拟按键,在灯效模拟步骤时,仅有被点选的模拟按键产生灯效,未点选的按键处于常暗状态。此设置使键盘灯效的自定义自由度更大。
进一步地,以机械键盘对应的平面模型为例,用户可点选数个虚拟按键并设定其以第一灯效模型产生灯效,同时点选其他虚拟按键并设定其以第二灯效模型产生灯效,以此类推,可同时在机械键盘上不同区域形成不同的动态灯效,增强视觉冲击。
进一步地,色值层重叠后,同时处于两个或多个色值层的色值单元根据多个色值层的透明度参数以及多个灯效模型的色值数据更新色值,最后可在界面上实现两层或多层动态灯效的同步显示,生成具有层叠效果的动态灯效。
进一步地,假设灯效模型为在x轴方向实现周期性七彩变化的灯效模型,以一个机械键盘和一个鼠标为例,二者对应的平面模型在x轴方向上仅占界面尺寸的一半,若以界面的边界作为灯效模型界限将灯效模型覆盖到界面后,灯效模型在x轴方向上的七彩变化则无法完整呈现在两个平面模型上;若以平面模型上色值单元组中多个色值单元重新生成灯效模型界限,则可保证灯效模型在x轴方向上的七彩变化完整反映至两个平面模型上,进一步保证灯效动态的完整性。
进一步地,在定义灯效时,用户可自定义灯效模型的中心位置,使同样的灯效模型产生具有不同空间感和整体感的灯效。
进一步地,在灯效模拟步骤进行的同时,多个接入设备同时进行灯效测试,使用者能进一步确认调试的灯效是否满足自身的视觉要求,便于进行下一步调整。
进一步地,多个平面模型中的色值单元以同一个二维坐标系识别其二维坐标数据,灯效模型覆盖到多个平面模型的色值单元后,可基于同一灯效模型改变多个平面模型上的色值单元的色值,即实现多个接入设备上LED灯动态效果之间的联动。
附图说明
图1为本发明入设备于界面中的灯效模拟方法实施例中键盘灯效控制系统的连接框图。
图2为本发明接入设备于界面中的灯效模拟方法实施例的流程框图。
图3为本发明接入设备于界面中的灯效模拟方法实施例第一状态的界面示意图。
图4为本发明接入设备于界面中的灯效模拟方法实施例中拖动平面模型的界面示意图。
图5为本发明接入设备于界面中的灯效模拟方法实施例界面二位坐标系的示意图。
图6为本发明接入设备于界面中的灯效模拟方法实施例界面中灯效模型的第一示意图。
图7为本发明接入设备于界面中的灯效模拟方法实施例界面中灯效模型的第二示意图。
图8为本发明接入设备于界面中的灯效模拟方法实施例界面中灯效模拟的第一示意图。
图9为本发明接入设备于界面中的灯效模拟方法实施例中色值层的原理图。
本发明的实施方式
接入设备于界面中的灯效模拟方法实施例
参见图1,图1为本发明入设备于界面中的灯效模拟方法实施例中键盘灯效控制系统的连接框图。键盘灯效控制系统用于对键盘RGB灯的灯效进行控制,以实现灯光效果。键盘灯效控制系统包括键盘内 部的单片机91、驱动芯片92以及设置在键盘表面的多个RGB灯93,除在键盘上每个按键开关处设置RGB灯93外,键盘表面的周边处设置一圈多个RGB灯93,驱动芯片92连接在单片机91与RGB灯93之间。驱动芯片92为IS31FL3731芯片,RGB灯93为LED灯,每个RGB灯93具有R、G、B三个颜色,每个颜色对应驱动芯片中的一个8位寄存器,每个RGB灯93可写入0至255共256级色值,当单片机91定时器计时33ms产生中断,单片机91将更新后每一个按键每一个颜色的色值,通过IIC总线依次写入驱动芯片92即可显示对应颜色。
参见图2和图3,图2为本发明接入设备于界面中的灯效模拟方法实施例的流程框图,图3为本发明接入设备于界面中的灯效模拟方法实施例第一状态的界面示意图。界面100显示于计算机显示器中的可视化界面,现于计算机的USB接口接入机械键盘、鼠标、鼠标垫以及耳机,或通过蓝牙通讯的方式将机械键盘、鼠标、鼠标垫以及耳机连接到计算机的系统中。机械键盘上每个按键的开关装置中均设置有一个具有256级变化色值的RGB LED灯,且机械键盘的外周围绕设置有一圈由多个RGB LED灯组成的LED灯组;鼠标的外周围绕设置有一圈由多个RGB LED灯组成的LED灯组,鼠标垫的外周围绕设置有一圈由多个RGB LED灯组成的LED灯组;耳机的每侧耳套上均设置有一圈圆环状的LED灯组,每个圆环状的LED灯组包括多个RGB LED灯。
将接入设备连接到计算机后,计算机的系统则执行步骤S1,获取接入设备信息。本实施例中,将机械键盘、鼠标、鼠标垫以及耳机连接到系统后,系统则分别获取关于机械键盘、鼠标、鼠标垫以及耳机的相关信息,相关信息包括产品型号信息。随后系统执行步骤S2,系统根据步骤S1中获取的关于机械键盘、鼠标、鼠标垫以及耳机的相关信息,系统读取分别与机械键盘、鼠标、鼠标垫以及耳机相匹配的预存的键盘平面模型10、鼠标平面模型20、鼠标垫平面模型30和耳机平面模型40,并随之执行步骤S3,将键盘平面模型10、鼠标平面模型20、鼠标垫平面模型30和耳机平面模型40显示到界面100中。
由于平面模型根据接入设备信息的读取而识别与显示,因此,平面模型上具有与外接设备上LED灯数量以及位置对应的色值单元,如键盘平面模型10上每个虚拟按键12均作为一个色值可控变化的色值单元,且键盘平面模型10的外周也具有一圈由多个色值单元围绕组成的虚拟LED灯组11。又如,鼠标平面模型20的外周具有一圈由多个色值单元组成的虚拟LED灯组21、鼠标垫平面模型30的外周具有一圈由多个色值单元组成的虚拟LED灯组31,以及耳机平面模型40的每侧耳套上均设置有一圈由多个色值单元组成的圆环状的虚拟LED灯组41。
结合图4,图4为本发明接入设备于界面中的灯效模拟方法实施例中拖动平面模型的界面示意图。当接入设备的平面模型显示到界面100后,用户可通过鼠标拖动平面模型,以调整各个平面模型于界面100中的位置。本实施例中,利用鼠标将键盘平面模型拖动并向图4所示视角的右下方平移,随后将鼠标平面模型20拖动并向图4所示视角的左上方平移,从而将键盘平面模型10和鼠标平面模型20之间的距离调节到用户认为的更接近于接入设备在现实摆设时的距离。
结合图5,图5为本发明接入设备于界面中的灯效模拟方法实施例界面二位坐标系的示意图。各个平面模型在界面100内显示的位置确定后,系统则执行步骤S4,根据界面100的二维坐标系101获取键盘平面模型10、鼠标平面模型20、鼠标垫平面模型30以及耳机平面模型40内每个色值单元的二维坐标数据,因此在界面100的二维坐标系101中,各个平面模型上每个色值单元具有唯一的二维坐标数值。
结合图6,图6为本发明接入设备于界面中的灯效模拟方法实施例界面中灯效模型的第一示意图。系统执行步骤S5,根据获取的设置参数生成色值变化规则。色值变化规则为最终呈现在界面100上,使每个选定的色值单元的色值按时间频率进行改变的总规则。影响色值变化规则的设置参数包括色值层、色值层的透明度、色值单元组、预存的灯效模型和灯效模型的变化速度等,而上述的设置参数,用户均可在界面100以外的设置界面上的交互窗口进行输入或选择。
首先,用户可在设置界面点选“全选”按键对界面100内所有色值单元进行选定,或再一次点选该“全选”按键,对界面100内所有的色值单元均取消选定,随后利用鼠标在平面模型上的色值单元进行点击以对该色值单元进行色值变化选定。在后续的灯效模拟步骤中,系统仅对获取了色值变化选定指令的色值单元进行色值更新。而图6所示则在设置界面点选“全选”按键对界面100内所有色值单元进行选定,随后在设置界面的灯效模型选择窗口中点选预设的“七彩波浪(横向)”效果,其他设置参数默认化,此时色值变化规则生成,“七彩波浪(横向)”的灯效模型200则以界面100的边界为界限覆盖到界面100中。
以“七彩波浪(横向)”的灯效模型200为例,灯效模型200中具有多根分界线,且相邻的两根分界线之间形成一个色值区域,如分界线202与分界线203之间形成色值区域c;而当灯效模型200以界面100的边界为界限覆盖到界面100后,界面100的二维坐标系101在灯效模型200上每个色值区域中均具有固定互不相交的坐标点集合,对应地,系统通过对平面模型上每个色值单元的二维坐标数据与色值区域的坐标点集合进行比对,则可识别每个色值单元具体位于哪个色值区域中。如图6所示,虚拟“Esc”键121和耳机左侧虚拟LED灯组411均位于色值区域c中,鼠标平面模型20上的虚拟LED灯组21则位于由分界线207和分界线208所界限的色值区域h,而鼠标垫平面模型30上的虚拟LED灯组31则跨越了色值区域g、色值区域h、色值区域i和色值区域j。
当然,用户还可以在将“七彩波浪(横向)”的灯效模型200覆盖到界面100前,自定义“七彩波浪(横向)”的灯效模型200的灯效中心于界面100中的位置。如“七彩波浪(横向)”的灯效中心位于色值区域f中,用户在设置界面选择“自定义中心”虚拟按键后,并在界面100中点击鼠标平面模型20上的虚拟LED灯组21,色值区域f则匹配至虚拟LED灯组21处,从而形成不一样的色值变化规则。若用户选择的灯效模型为一个关于转动效果的灯效模型,灯效中心的自定义则会对灯效的效果产生更大的影响。
完成规则生成步骤后,用户在设置界面中点击“启动灯效模拟”的虚拟按键,系统则执行灯效模拟步骤S6,根据生成的色值变化规则和每个色值单元的二维坐标数据以固定时间频率更新每个色值单元的色值。灯效模型内已包括其预设的各个色值区域内每个坐标点的初始色值和每个坐标点的色值变化规律,以“七彩波浪(横向)”灯效为例,其内相邻色值区域之间的分界线为蜿蜒曲线,一个色值区域在下一时间帧继承其上一个色值区域在当前时间帧内的色值,从而实现整体色值逐渐沿二维坐标系101的x轴正向上的推进,最后呈现波浪冲刷的视觉效果。
由于键盘平面模型10、鼠标平面模型20、鼠标垫平面模型30以及耳机平面模型40上每个色值单元在二维坐标系101上具有唯一的二维坐标数据,无论对键盘平面模型10、鼠标平面模型20、鼠标垫平面模型30以及耳机平面模型40进行怎样的间距调整,系统均以每个色值单元更新后的二维坐标数据与灯效模型进行比对,重新识别每个色值单元所归属的色值区域。因此,本发明中基于界面二维坐标系的灯效模拟方法能正确识别色值单元在灯效模型中对应位置的初始色值和色值变化规则,即使任意调节多个接入设备的相对位置,均能保证灯效的动态完整性、整体感和空间感。
参见图7,图7为本发明接入设备于界面中的灯效模拟方法实施例界面中灯效模型的第二示意图。为使灯效模型的动态效果完整性进一步呈现在多个色值单元上,在执行步骤S5前,用户还可在设置界面中点选“比例适应”虚拟按键,将灯效模型的显示跨度按比例缩小。而“比例”则根据灯效模型的外轮廓以及获取了色值变化选定指令的色值单元的分布而确定。
例如,“七彩波浪(横向)”的灯效模型外周边为矩形,且先前已通过点选“全选”虚拟按键对界面100内所有的色值单元进行选择,在点选“比例适应”虚拟按键后,系统则根据键盘平面模型10的虚拟LED灯组11、鼠标垫平面模型30的虚拟LED灯组31以及耳机平面模型40上的虚拟LED灯组41的多个色值单元判断生成最小外界矩形202,并以该最小外界矩形202作为“七彩波浪(横向)”灯效模型的 灯效模型界限,灯效模型200则按比例缩小,并覆盖至最小外界矩形202所围绕的矩形区域中。经过“比例适应”后,灯效模型200内x轴向布置的色值区域a至色值区域j内均具有以获取色值变化选定指令的色值单元,在灯效模拟后,“七彩波浪(横向)”的动态完整性更好。
在执行步骤S5前,用户还可在界面中选取任意一个或多个色值单元,并在设置界面点击“创建色值单元组”虚拟按键,系统在获取一个或多个色值单元的选定指令以及“创建色值单元组”的选定指令后,则将该一个或多个色值单元识别为色值单元组。界面中可同时存在多个色值单元组,且随后用户可分别对每个色值单元组选择相互独立的灯效模块以及相互独立地定义其他设置参数。
参见图8,图8为本发明接入设备于界面中的灯效模拟方法实施例界面中灯效模拟的第一示意图。在执行步骤S5前,系统将用户点选的键盘平面模型10中的虚拟“A”键122、虚拟“S”键123、虚拟“D”键124和虚拟“W”键125识别为第一色值单元组,用户为第一色值单元组选择七彩波浪灯效模型;系统将用户点选的键盘平面模型10中的虚拟“向左”键126、虚拟“向下”键127、虚拟“向右”键128和虚拟“向上”键129识别为第二色值单元组,用户为第二色值单元组选择七彩旋转灯效模型;系统将用户点选的鼠标平面模型20上的虚拟LED灯组21识别为第三色值单元组,用户为第三色值单元组选择呼吸灯效模型;最后系统将用户点选的耳机平面模型40上的虚拟LED灯组41识别为第四色值单元组,且用户为第四色值单元组选择常亮灯效模型。
随后系统在执行步骤S5时则根据上述设定生成色值变化规则,在执行步骤S6时,第一色值单元组显示七彩波浪灯效,同时第二色值单元组显示七彩旋转灯效,同时第三色值单元组显示呼吸灯效,同时第四色值单元组显示常亮灯效。即,在界面100内,平面模型之间、甚至平面模型上不同区域之间均可形成不同的动态灯效,增强视觉冲击。
在规则生成步骤S5前,用户可在设置界面中创建一个或多个“色值层”,若创建多个色值层,可进一步设置每个色值层的透明度参数, 在规则生成步骤S5中,系统则根据每个色值层的色值变化规律和每个色值层的透明度参数生成最终的色值变化规则。
色值层则包括上述的一个或多个色值单元组,且每个色值单元组具有独立的灯效模型和设置参数。参见图9,图9为本发明接入设备于界面中的灯效模拟方法实施例中色值层的原理图,图中包括第一色值层810在键盘平面模型上的灯效模拟示意图、第二色值层820在键盘平面模型上的灯效模拟示意图,和由第一色值层810与第二色值层820重叠形成的色值变化规则830在键盘平面模型上的灯效模拟示意图。
第一色值层810具有第一色值单元组811和第二色值单元组812,第一色值单元组811包括主键盘区中五个字母虚拟按键,第二色值单元组812包括“向上”、“向下”、“向左”和“向右”四个虚拟按键,第一色值单元组811设定的灯效模型为七彩旋转灯效模型,第二色值单元组812设定的灯效模型为呼吸灯效模型;第二色值层820中仅有第三色值单元组821,第三色值单元组821包括主键盘区中两个数字虚拟按键和四个字母虚拟按键,第三色值单元组821设定的灯效模型为七彩波浪(横向)灯效模型。设定第一色值层810的透明度参数为60%,第二色值层的透明度参数为40%。
第一色值层810和第二色值层820叠合后生成最终的色值变化规则830,从色值变化规则830可见,由于第一色值层810的第一色值单元组811和第二色值层820的第三色值单元组821之间具有四个字母虚拟按键对应的色值单元在灯效上重叠,此时需重新计算这些色值单元的色值。如色值单元83归属于第一色值层810的第一色值单元组811,其在七彩旋转灯效模型于此时间帧的RGB值分别为R 1、G 1和B 1,且色值单元83归属于第二色值层820的第三色值单元组821,其在七彩波浪(横向)灯效模型于此时间帧的RGB值分别为R 2、G 2和B 2,那最后色值单元83在该时间帧的RGB值为:
R=R 1×60%+R 2×40%
G=G 1×60%+G 2×40%
B=B 1×60%+B 2×40%
同理地,若被设置的色值层数为n层,色值重叠的一个色值单元上,第1、2……n色值层对应的R值分别为R 1、R 2……R n,第1、2……n色值层对应的G值分别为G 1、G 2……G n,第1、2……n色值层对应的B值分别为B 1、B 2……B n,第1、2……n色值层的透明度系数分别为a 1、a 2……a n,则最后生成的色值变化规则中,该色值单元的RGB值为:
R=R 1×a 1+R 2×(1-a 1)a 2+……R n×[(1-a 1)(1-a 2)……(1-a n-1)a n]
G=G 1×a 1+G 2×(1-a 1)a 2+……G n×[(1-a 1)(1-a 2)……(1-a n-1)a n]
B=B 1×a 1+B 2×(1-a 1)a 2+……B n×[(1-a 1)(1-a 2)……(1-a n-1)a n]
同时处于两个或多个色值层的色值单元根据多个色值层的透明度参数以及多个灯效模型的色值数据更新色值,最后可在整个界面上实现两层或多层动态灯效的同步显示,进而生成具有层叠效果的动态灯效。
结合图1,优选地,在执行灯效模拟步骤S6的同时,单片机91还向接入设备中的驱动芯片92发送控制信号,使接入设备上每个RGB灯93根据在规则生成步骤S5中生成的色值变化规则和色值单元对应的二维坐标数据更新色值,在软件进行灯效模拟的同时进行接入设备的灯效测试,使用者能进一步确认调试的灯效是否满足自身的视觉要求,便于进行下一步调整。
计算机装置实施例
本发明的计算机装置可以是包括有处理器以及存储器等装置,例如包含中央处理器的单片机等。并且,处理器用于执行存储器中存储的计算机程序时实现上述接入设备于界面中的灯效模拟方法的步骤,包括显示步骤、识别步骤、规则生成步骤和灯效模拟步骤。
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
计算机可读存储介质实施例
本发明的计算机可读存储介质可以是被计算机装置的处理器所读取的任何形式的存储介质,包括但不限于非易失性存储器、易失性存储器、铁电存储器等,计算机可读存储介质上存储有计算机程序,当计算机装置的处理器读取并执行存储器中所存储的计算机程序时,可以实现上述接入设备于界面中的灯效模拟方法的步骤,包括显示步骤、识别步骤、规则生成步骤和灯效模拟步骤。
所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
最后需要强调的是,以上所述仅为本发明的优选实施例,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种变化和更改,如,在规则生成步骤中,灯效模型的“比例适应”调整不仅可根据多个以获取色值变化选定指令的色值单元的最小外界矩形进行,申请号为CN201810476398.4的中国发明专利申请中,公开的键盘灯效 控制方法中记载一种实现键盘LED灯七彩旋转灯效的灯效模型,并记载一种基于二维坐标系的、利用最小外界椭圆以调整圆周布置的七彩旋转灯效模型的“比例适应”调整,此“比例适应”调整方式同样适用于本发明中系统对界面中灯效模型界限的调整。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业应用性
本发明的接入设备于界面中的灯效模拟方法可应用在计算机上,在计算机上接入如键盘、鼠标和耳机等带有LED灯的接入设备并运行计算机上的应用程序时,可执行接入设备于界面中的灯效模拟方法,在界面中显示与已接入设备相关联的二维模型以及在二维模型上进行灯效模拟显示。
计算机的处理器用于执行存储器中存储的计算机程序时实现上述的灯效模拟方法,计算机程序被计算机的处理器执行时实现上述的灯效模拟方法。
已接入设备显示所在界面以二维坐标作为基础,系统系识别每个平面模型上每个色值单元的二维坐标数据,并在灯效模拟步骤中根据每个色值单元的二维坐标数据改变色值,界面上不同平面模型上多个色值单元之间即使错落布置,也能正确识别其在灯效模型中对应位置的初始色值和色值变化规则,即使任意调节多个接入设备的相对位置,均能保证灯效的动态完整性,整体感和空间感。

Claims (11)

  1. 接入设备于界面中的灯效模拟方法,其特征在于,包括:
    显示步骤,于界面中显示与接入设备对应的平面模型;
    识别步骤,根据所述界面的二维坐标系识别所述平面模型内色值单元的二维坐标数据;
    规则生成步骤,根据获取的设置参数生成色值变化规则;
    灯效模拟步骤,根据所述色值变化规则和所述二维坐标数据更新所述色值单元的色值。
  2. 根据权利要求1所述的灯效模拟方法,其特征在于:
    所述灯效模拟步骤中,仅对在所述规则生成步骤中已获取色值变化选定指令的所述色值单元进行色值更新。
  3. 根据权利要求1或2所述的灯效模拟方法,其特征在于:
    获取的所述设置参数包括预设的灯效模型;
    所述灯效模拟步骤中,包括:
    根据所述灯效模型和二维坐标数据更新所述色值单元的色值。
  4. 根据权利要求3所述的灯效模拟方法,其特征在于:
    所述规则生成步骤中,包括:
    根据获取的设置参数识别一个或多个色值单元组,每个所述色值单元组包括一个或多个已获取色值变化选定指令的所述色值单元;
    根据获取的设置参数识别每个所述色值单元组所对应的预设的所述灯效模型。
  5. 根据权利要求4所述的灯效模拟方法,其特征在于:
    所述规则生成步骤中,还包括:
    根据获取的设置参数识别一个或多个色值层,每个所述色值层包括一个或多个所述色值单元组;
    根据获取的设置参数识别每个所述色值层对应的透明度参数;
    根据每个所述色值层对应的所述灯效模型和所述透明度参数生成所述色值变化规则。
  6. 根据权利要求3所述的灯效模拟方法,其特征在于:
    所述规则生成步骤中,还包括:
    根据所述色值单元的所述二维坐标数据生成灯效模型界限;
    根据所述灯效模型界限调整所述灯效模型在所述界面中的显示跨度。
  7. 根据权利要求3所述的灯效模拟方法,其特征在于:
    所述规则生成步骤中,还包括:
    将所述灯效模型的灯效中心匹配于已获取灯效中心选定指令的所述色值单元。
  8. 根据权利要求1或2所述的灯效模拟方法,其特征在于:
    所述灯效模拟步骤中,还包括:
    向所述接入设备发送控制信号,根据所述色值变化规则和所述二维坐标数据更新所述接入设备上LED灯的色值。
  9. 根据权利要求1或2所述的灯效模拟方法,其特征在于:
    所述显示步骤中,于所述界面中显示多个所述平面模型,每个所述平面模型与相对独立的一个接入设备对应。
  10. 一种计算机装置,其特征在于:所述计算机装置包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如权利要求1至9任一项所述的灯效模拟方法。
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现如权利要求1至9任一项所述的灯效模拟方法。
PCT/CN2020/080818 2019-04-03 2020-03-24 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质 WO2020199970A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910264393.XA CN110007781B (zh) 2019-04-03 2019-04-03 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质
CN201910264393.X 2019-04-03

Publications (1)

Publication Number Publication Date
WO2020199970A1 true WO2020199970A1 (zh) 2020-10-08

Family

ID=67169584

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/080818 WO2020199970A1 (zh) 2019-04-03 2020-03-24 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN110007781B (zh)
WO (1) WO2020199970A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631223A (zh) * 2020-12-18 2021-04-09 广州达宝文汽车设备集团有限公司 一种生产智能化管理系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007781B (zh) * 2019-04-03 2021-06-22 珠海市学思电子科技有限公司 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质
CN110850993B (zh) * 2019-11-12 2023-10-20 珠海市学思电子科技有限公司 键盘灯效设置方法、计算机装置和计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8466383B2 (en) * 2010-09-22 2013-06-18 Getac Technology Corporation Illuminant human interface device
CN107958658A (zh) * 2017-11-08 2018-04-24 深圳市屯奇尔科技有限公司 半径采样旋转rgb灯带显示方法、装置及计算机可读存储介质
CN108664136A (zh) * 2018-05-17 2018-10-16 珠海市学思电子科技有限公司 键盘灯效控制方法、计算机装置和计算机可读存储介质
CN108882440A (zh) * 2018-05-17 2018-11-23 珠海市学思电子科技有限公司 键盘灯效控制方法、计算机装置和计算机可读存储介质
CN110007781A (zh) * 2019-04-03 2019-07-12 珠海市学思电子科技有限公司 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206628389U (zh) * 2017-02-28 2017-11-10 深圳市恒上电子有限公司 全键无冲式rgb背光薄膜键盘

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8466383B2 (en) * 2010-09-22 2013-06-18 Getac Technology Corporation Illuminant human interface device
CN107958658A (zh) * 2017-11-08 2018-04-24 深圳市屯奇尔科技有限公司 半径采样旋转rgb灯带显示方法、装置及计算机可读存储介质
CN108664136A (zh) * 2018-05-17 2018-10-16 珠海市学思电子科技有限公司 键盘灯效控制方法、计算机装置和计算机可读存储介质
CN108882440A (zh) * 2018-05-17 2018-11-23 珠海市学思电子科技有限公司 键盘灯效控制方法、计算机装置和计算机可读存储介质
CN110007781A (zh) * 2019-04-03 2019-07-12 珠海市学思电子科技有限公司 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631223A (zh) * 2020-12-18 2021-04-09 广州达宝文汽车设备集团有限公司 一种生产智能化管理系统
CN112631223B (zh) * 2020-12-18 2021-12-03 广州达宝文汽车设备集团有限公司 一种生产智能化管理系统

Also Published As

Publication number Publication date
CN110007781A (zh) 2019-07-12
CN110007781B (zh) 2021-06-22

Similar Documents

Publication Publication Date Title
WO2020199970A1 (zh) 接入设备于界面中的灯效模拟方法、计算机装置和计算机可读存储介质
US11458390B2 (en) Game controller, and vibration method and vibration apparatus for game controller
JP6942101B2 (ja) 音声情報を補償するビジュアル方法及び装置、プログラム、記憶媒体、電子機器
US10620437B2 (en) Systems and methods for presentation of images from camera concurrently with presentation of virtual reality content
KR20150046105A (ko) 멀티모드 피드백으로 이미지를 인식하는 시스템 및 방법
US10146501B1 (en) Sound control by various hand gestures
JP4267019B2 (ja) カード識別装置、カード識別方法、ならびに、プログラム
WO2019071398A1 (zh) 屏幕缩放调整方法及装置、终端及计算机可读存储介质
CN113069759B (zh) 游戏中的场景处理方法、装置和电子设备
CN107643922A (zh) 用于语音辅助的设备、方法及计算机可读存储介质
CN108352128B (zh) 利用写入的数学式识别的数学学习装置及方法
EP4268913A1 (en) Position adjustment method and apparatus for operation controls, and terminal, and storage medium
WO2020231564A1 (en) Systems and methods for obscuring touch inputs to interfaces promoting obfuscation of user selections
WO2020231542A1 (en) Systems and methods of selection acknowledgement for interfaces promoting obfuscation of user operations
CN108805171A (zh) 图像至音乐旋律的转换方法、装置与计算机可读存储介质
US20140266569A1 (en) Controlling music variables
CN108762878A (zh) 一种应用程序互动界面生成方法、装置、设备及存储介质
CN107481697A (zh) 一种图片显示方法及用户终端和相关介质产品
JP2011118456A (ja) 情報処理装置および情報処理装置における認証方法
US20240094819A1 (en) Devices, methods, and user interfaces for gesture-based interactions
US10795414B2 (en) Electronic device and operation method of selecting a function item thereof
CN110850993B (zh) 键盘灯效设置方法、计算机装置和计算机可读存储介质
WO2018211826A1 (ja) 情報処理システム、情報処理方法、およびプログラム
US20170097804A1 (en) Visual music color control system
KR101398087B1 (ko) 터치 스크린 상에서의 사용자 입력을 보정하는 방법 및 장치, 온라인 게임에서의 사용자 입력을 보정하는 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20783982

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20783982

Country of ref document: EP

Kind code of ref document: A1