Color changing method in game, electronic equipment and readable storage medium
By providing color palette selection controls and lists in the graphical user interface of the game editor, players can quickly update the colors of multiple components, solving the problem of cumbersome operations and improving component color change efficiency and player gaming experience.
Patent Information
- Application Number
- CN202411931396.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2025-02-18
AI Technical Summary
In the game editor, players update the colors of multiple components with cumbersome operations, resulting in low color matching efficiency of components and affecting the player's gaming experience.
By providing a graphical user interface, players can display the game editing scene provided by running the game program, including multiple edited components in the graphical user interface. Displays the color palette selection control in the graphical user interface in response to the settings for the targeted edited components in multiple edited components. Then, in response to the trigger operation for the color palette selection control, the color palette selection list corresponding to the target edited component is displayed in the graphical user interface, and select an alternative color entries to update the color of the color of the target edited component.
By selecting alternative color matching entries in the color palette selection list, the overall color change of the dyed areas in the edited components is improved, the efficiency of component color change is reduced, the cost of player color adjustment is improved, and the player's gaming experience is improved.
Smart Images

Figure CN119455388A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of game interaction design, and in particular to a color changing method, electronic device and readable storage medium in a game. Background Art
[0002] In the game editor, the color of components can be updated according to player needs. Usually, each component corresponds to at least one dyeing area, and the player can adjust the color corresponding to one dyeing area in the component each time. If the player wants to update the colors of multiple components, this method is cumbersome, resulting in low efficiency in player component color adjustment, affecting the player's gaming experience. Summary of the invention
[0003] The purpose of the present disclosure is to provide a color changing method, device and electronic device in a game to simplify the component color changing operation, improve the component color changing efficiency, and thus enhance the player's gaming experience.
[0004] In a first aspect, the present disclosure provides a method for changing colors in a game, wherein a graphical user interface is provided through a terminal device, and a game editing scene provided by running a game program is displayed in the graphical user interface, wherein the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to editing operations; the method comprises: in response to a setting operation for a target edited component among the plurality of edited components, a color palette selection control is displayed in the graphical user interface; wherein the target edited component includes at least one dyeing area, and the dyeing area is used to configure a color for the target edited component; in response to a triggering operation for the color palette selection control, a color palette selection list corresponding to the target edited component is displayed in the graphical user interface; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes alternative colors of the dyeing area contained in the target edited component; in response to a selection operation in the color palette selection list, a target color matching entry is determined from at least one alternative color matching entry, and the color of the dyeing area contained in the target edited component is updated according to the alternative colors in the target color matching entry; and the target edited component after the color of the dyeing area is updated is displayed in the graphical user interface.
[0005] In a second aspect, the present disclosure provides a color changing device in a game, which provides a graphical user interface through a terminal device; a game editing scene provided by running a game program is displayed in the graphical user interface, wherein the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to editing operations; the device includes: a control display module, which is used to display a color palette selection control in the graphical user interface in response to a setting operation for a target edited component among the plurality of edited components; wherein the target edited component includes at least one dyeing area, and the dyeing area is used to configure a color for the target edited component; a list display module, which is used to In response to a trigger operation on a color palette selection control, a color palette selection list corresponding to a target edited component is displayed in a graphical user interface; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes alternative colors of a dyeing area contained in the target edited component; a color determination module is used to determine a target color matching entry from at least one alternative color matching entry in response to a selection operation in the color palette selection list, and update the color of the dyeing area contained in the target edited component according to the alternative colors in the target color matching entry; an update display module is used to display the target edited component after the color of the dyeing area is updated in the graphical user interface.
[0006] In a third aspect, the present disclosure provides an electronic device, which includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the color changing method in the above-mentioned game.
[0007] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the color-changing method in the above-mentioned game.
[0008] The embodiments of the present disclosure bring the following beneficial effects:
[0009] The present disclosure provides a color changing method, device and electronic device in a game. First, in response to a setting operation of a target edited component among multiple edited components included in a game editing scene, a color palette selection control is displayed in a graphical user interface, and the target edited component includes at least one dyeing area; then, in response to a triggering operation on the color palette selection control, a color palette selection list corresponding to the target edited component is displayed in the graphical user interface, and the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes the alternative color of the dyeing area included in the target edited component; then, in response to a selection operation in the color palette selection list, a target color matching entry is determined from at least one alternative color matching entry, the color of the dyeing area included in the target edited component is updated according to the alternative color in the target color matching entry, and the target edited component after the color of the dyeing area is updated is displayed in the graphical user interface. This method can change the color of the dyeing area in the edited component as a whole by selecting the alternative color matching entry in the color palette selection list, thereby improving the component color changing efficiency, reducing the player's color adjustment cost, and improving the player's game experience.
[0010] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0011] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, the following specifically cites preferred implementation modes and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A flowchart of a color changing method in a game provided by an embodiment of the present disclosure;
[0014] Figure 2 A schematic diagram of displaying a first editing window provided by an embodiment of the present disclosure;
[0015] Figure 3 A flowchart of another color changing method in a game provided by an embodiment of the present disclosure;
[0016] Figure 4 A schematic diagram of a second editing window provided in an embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram of displaying a color palette selection list provided in an embodiment of the present disclosure;
[0018] Figure 6 A schematic diagram of component color change provided in an embodiment of the present disclosure;
[0019] Figure 7 A schematic diagram of the structure of a color changing device in a game provided by an embodiment of the present disclosure;
[0020] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0021] icon:
[0022] 1-First editing window; 2-Second editing window; 3-Color palette selection control; 4-Color display area. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure described and shown in the drawings here can be arranged and designed in various different configurations.
[0024] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure.
[0025] The color changing method in the game in one embodiment of the present disclosure can be run on a local terminal device or a server. When the color changing method in the game is run on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0026] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the color change method in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0027] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0028] In a possible implementation, the disclosed embodiment provides a color changing method in a game, and a graphical user interface is provided through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above. A game editing scene provided by a running game program is displayed in the graphical user interface, and the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to editing operations; Figure 1 As shown, the method comprises the following specific steps:
[0029] Step S102, in response to a setting operation for a target edited component among multiple edited components, a color palette selection control is displayed in a graphical user interface; wherein the target edited component includes at least one dyeing area, and the dyeing area is used to configure a color for the target edited component.
[0030] The above-mentioned game editing scene is a scene provided by running the game program, and can also be understood as a scene provided by the game editor. In the game editing scene, editable components can be edited, and the edited editable components are determined as edited components and set in the game editing scene. In specific implementation, when the game editing instruction is triggered, the game editing scene can be displayed in the graphical user interface, and the game editing instruction can be determined according to the game rules. For example, the editing instruction can be an operation to enter the game editor; it can also be an operation to select a scene map for editing, etc.
[0031] In a specific embodiment, after displaying the game editing scene in the graphical user interface, the edited component can be set in the game editing scene in the following manner: displaying a first editing window in the graphical user interface; wherein the first editing window includes a plurality of editable components; in response to a selection operation for a target editable component among the plurality of editable components, controlling the generation of an edited component corresponding to the target editable component in the game editing scene. The component types and component forms specifically included in the above-mentioned editable components can be set according to research and development requirements. Figure 2 FIG. 1 is a schematic diagram showing a display of a first editing window provided by an embodiment of the present invention. Figure 2 The rectangular box corresponding to the label 1 is the first editing window, which includes multiple different types of editable components, including: terrain components, mechanism components, decoration components and combination components, etc. Each type of editable component also contains multiple editable components. Figure 2 The mechanism components also include motion mechanism components, functional mechanism components, logic components, object components and floor components, among which the key motion mechanisms also include cylinders, gears, cross gears, clockwise turntables, etc. The specific operation of the above selection operation can be determined according to the research and development requirements, or according to the user's setting operation. For example, the selection operation can be to drag the target editable component to the game editing scene, or to click or long press the target editing component in the first editing window.
[0032] In a specific implementation, the game editing scene may include multiple edited components, and the target edited component may be any one of the multiple edited components. The specific edited component of the target edited component may be determined according to the player's operation. The specific operation of the setting operation for the target edited component may be determined according to the research and development requirements, or may be determined according to the user's setting operation. For example, the setting operation may be an operation in which the player selects the target edited component and edits the target edited component. When the player performs a setting operation on the target edited component, a color palette selection control for the target edited component will be displayed at a specified position in the graphical user interface; the specified position may be any position in the graphical user interface, or may be a fixed position in the graphical user interface, or may be a position in the second editing window displayed in the graphical user interface, etc. The color palette selection control is used to select a color for the dyeing area of the target edited component.
[0033] In a specific embodiment, in an edited component, a dyeing area corresponds to a color channel; the color channel is used to store the color parameters of the dyeing area, and update the color of the dyeing area according to the color parameters. Specifically, each edited component includes at least one dyeing area, which is used to configure the color of the corresponding edited component, that is, the dyeing area updates the color through the color parameters currently stored in the color channel, thereby updating the color of the edited component corresponding to the dyeing area. In an optional embodiment, the dyeing area of the editable component corresponding to the edited component is pre-set during the component development stage, so the number of dyeing areas of the edited component included in the game editing scene, and the area corresponding to each dyeing area in the edited component are also set in advance. In an optional embodiment, the dyeing area of the editable component corresponding to the edited component can be customized according to the user's setting instructions, that is, different areas on the editing component are set to different dyeing areas through user interaction.
[0034] In an optional embodiment, in order to quickly change the color of an edited component, the number of dyeing areas corresponding to the edited component may have an upper limit, and the specific upper limit can be determined according to research and development requirements, or according to user settings. For example, the upper limit may be four. If each edited component contains four dyeing areas, then the edited component corresponds to four color channels, and each color channel can receive color parameters, which are mask maps containing corresponding colors.
[0035] In another optional embodiment, the editable component may include a dyed area that is in a fixed pattern and cannot be customized. This method will create a field corresponding to the editor color parameter in the material corresponding to the editable component, thereby changing the color of the editable component through the color parameter.
[0036] Step S104, in response to a trigger operation on a color palette selection control, a color palette selection list corresponding to the target edited component is displayed in a graphical user interface; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes alternative colors of the dyeing area contained in the target edited component.
[0037] The triggering operation for the color palette selection control can be a player's click operation, long press operation, etc. on the color palette selection control, which can be determined according to the game rules. When the player triggers the color palette selection control, the color palette selection list corresponding to the target edited component will be displayed in the graphical user interface, and the color palette selection list will usually be displayed in a location associated with the color palette selection control. For example, the color palette selection control is a drop-down control. When the player clicks the color palette selection control, a color palette selection list will be displayed below the color palette selection control. The color palette selection list may include one or more alternative color matching entries, and the alternative color matching entries include alternative colors for the dyeing area contained in the target edited component. Among them, the number of alternative colors included in the alternative color matching entry can be the same as the number of dyeing areas contained in the target edited component, or it can be different. It can be determined according to research and development needs or according to the user's setting operation.
[0038] Specifically, the alternative colors contained in each alternative color entry in the color palette selection list are set in advance, and the alternative colors contained in different alternative color entries can be the same or different. If the alternative colors contained in different alternative color entries are exactly the same, the color order of the same alternative color in different alternative color entries may be different. For example, alternative color entry 1 and alternative color entry 2 both contain the four colors red, yellow, green and purple, then the order of these four colors in alternative color entry 1 is: red, yellow, purple, green; the order of these four colors in alternative color entry 2 is: yellow, purple, green, red.
[0039] In a specific embodiment, the number of colors of the alternative colors included in the alternative color matching entries displayed in the color palette selection list is the same as the number of regions of the dyed areas included in the target edited component. That is, if the target edited component includes multiple dyed areas, each alternative color matching entry displayed in the color palette selection list will include multiple alternative colors, thereby facilitating a one-to-one correspondence between the alternative colors and the dyed areas in the target edited component.
[0040] Step S106 , in response to a selection operation in the color palette selection list, determining a target color matching entry from at least one candidate color matching entry, and updating the color of the dyeing area included in the target edited component according to the candidate colors in the target color matching entry.
[0041] The above-mentioned selection operation can be a click operation or a long press operation on a certain alternative color matching item in the color palette selection list. When the player selects the target color matching item in the color palette selection list, the color of each dyeing area in the target edited component will be updated according to the alternative color in the target color matching item. The specific update method of the color of the specific dyeing area can be determined according to the research and development requirements, and can also be determined according to the user's setting operation. For example, when the number of colors of the alternative colors in the target color matching item is the same as the number of dyeing areas contained in the target edited component, the color of the dyeing area of the target edited component can be updated according to the correspondence between the alternative colors and the dyeing areas, wherein the correspondence between the alternative colors and the dyeing areas is set according to a preset rule, and the preset rule can be determined according to the research and development requirements, and can also be determined according to the user's setting operation. For example, the preset rule can be based on the order of the alternative colors in the target color matching item and the order of the dyeing area of the target edited component. The corresponding relationship between the alternative colors and the dyeing area is determined, that is, when the color order of the alternative colors is the same as the order of the regional colors of the dyeing area, the dyeing area is updated to the alternative color.
[0042] Step S108, displaying the target edited component after the color of the dyed area is updated in the graphical user interface.
[0043] After the color of the dyed area included in the target edited component is updated according to the alternative color in the target color matching entry, the target edited component with the updated color of the dyed area is obtained, and the target edited component with the updated color of the dyed area is displayed in the graphical user interface, so that the player can check whether the target edited component with the updated color of the dyed area meets his or her needs.
[0044] The disclosed embodiment provides a color changing method in a game, which can change the color of the dyed area in the edited component as a whole by selecting an alternative color matching entry in the color palette selection list. Compared with the method in which the player adjusts the color corresponding to a dyed area in the component at a time in the game editor, the disclosed embodiment improves the component color changing efficiency, reduces the player's color adjustment cost, and improves the player's gaming experience.
[0045] The disclosed embodiment provides a color changing method in a game, which is implemented on the basis of the above embodiment. The method focuses on describing a specific process of displaying a color palette selection control in a graphical user interface in response to a setting operation on a target edited component among multiple edited components (implemented through the following steps S202-S204), and a specific process of determining a target color matching entry from at least one alternative color matching entry in response to a selection operation in a color palette selection list, and updating the color of a dyed area included in the target edited component according to the alternative color matching in the target color matching entry (implemented through the following steps S208-S210); Figure 3 As shown, the method comprises the following specific steps:
[0046] Step S202 , in response to a trigger operation on a target edited component among multiple edited components, select a target edited component.
[0047] The trigger operation may be a click operation or a selection operation on a target edited component among a plurality of edited components displayed in the game editing scene.
[0048] Step S204, in response to a triggering operation on a setting control in the graphical user interface, a second editing window is displayed in the graphical user interface; wherein the second editing window includes: a color palette selection control, and a current color corresponding to a dyeing area included in the target edited component.
[0049] In a specific implementation, the trigger operation for the setting control may be a click operation or a long press operation on the setting control. After selecting the target edited component, the setting control is triggered, and a second editing window may be displayed in the graphical user interface. The second editing window is used to edit or set the component information of the selected target edited component, and the component information includes component color, component rotation speed, center of gravity position, etc. The color palette selection control in the second editing window is used to adjust the component color.
[0050] like Figure 4 FIG. 1 is a schematic diagram of a second editing window provided by an embodiment of the present disclosure. Figure 4 The rectangular box corresponding to label 2 is the second editing window corresponding to the target edited component whose component name is clockwise turntable. The rectangular box corresponding to label 3 in the second editing window is the color palette selection control. The four color identifiers corresponding to the color value are used to indicate the current color corresponding to the dyeing area contained in the target edited component. Specifically, if the target edited component contains four dyeing areas, then one dyeing area corresponds to one color identifier. Figure 4 The corresponding slider under "Speed" in the menu is used to adjust the speed of the clockwise turntable. Figure 4 Set the clockwise rotation speed to 45.
[0051] Step S206, in response to the triggering operation on the color palette selection control, displaying a color palette selection list corresponding to the target edited component in the second editing window; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes alternative colors of the dyeing area contained in the target edited component.
[0052] like Figure 5 FIG. 1 is a schematic diagram showing a display of a color palette selection list provided in an embodiment of the present disclosure. When a player triggers a color palette selection control, a color palette selection list is displayed below the color palette selection control. Figure 5In the color palette selection list, there are multiple color options. Figure 5 Only 4 alternative color entries are displayed. Players can slide the color palette selection list to display the remaining alternative color entries that are not displayed. Figure 5 The edited component of the target contains four dyeing areas. The current color value corresponding to each dyeing area is displayed in the color display area corresponding to the number 4. The color display area displays the color identifier of the current color ( Figure 5 ), the number of alternative colors corresponding to each alternative color entry displayed in the color palette selection list matches the number of dyeing areas contained in the target edited component, and the dyeing areas corresponding to the alternative colors and color values displayed in the alternative color entry are the same.
[0053] In an optional embodiment, the number of alternative colors corresponding to each alternative color entry displayed in the color palette selection list is the same as the number of dyeing areas contained in the target edited component; due to limited display space in the window interface, in another optional embodiment, the number of alternative colors corresponding to each alternative color entry displayed in the color palette selection list may be less than the number of dyeing areas contained in the target edited component.
[0054] Step S208, in response to a triggering operation on the color palette selection list, displaying at least one candidate color matching entry provided by the color palette selection list in the second editing window, wherein the candidate color matching entry includes candidate colors corresponding to the dyeing area included in the target edited component.
[0055] The triggering operation acting on the color palette selection list may be a sliding operation or a dragging operation on the color palette selection control, etc., through which all the alternative color matching entries provided in the color palette selection list in the second graphical user interface can be viewed.
[0056] Step S210, in response to a selection operation on a target color entry in at least one alternative color entry, the current color corresponding to the dyed area contained in the target edited component in the second editing window is replaced with the alternative color included in the target color entry and corresponding to the dyed area contained in the target edited component.
[0057] The above selection operation can be a click operation or a sliding operation on the target color matching entry. When the player selects the target color matching entry, the current color corresponding to the dyed area contained in the target edited component displayed in the second editing window will be replaced with the alternative color contained in the target color matching entry. After the current color corresponding to the dyed area contained in the target editable component in the second editing window is replaced, the color of the dyed area contained in the target edited component displayed in the game editing scene will also be replaced. Figure 6FIG. 1 is a schematic diagram of a component color change provided by an embodiment of the present invention. Figure 6 The colors of the clockwise wheel in Figure 5 The default color in is replaced with the alternative color corresponding to the target color entry "Thousand Miles of Rivers and Mountains", and Figure 6 The current color corresponding to the dyed area contained in the clockwise dial in the second editing window is also replaced by the alternative color corresponding to the target color entry "Thousand Miles of Rivers and Mountains".
[0058] Step S212, displaying the target edited component after the color of the dyed area is replaced in the graphical user interface.
[0059] In an optional embodiment, the second editing window includes a color display area, which displays the color identifier of the current color, and different color identifiers correspond to the dyed areas contained in the target edited component. Based on this, the disclosed embodiment can also change the color of each dyed area in the following manner: in response to a touch operation on the color identifier, a color adjustment panel is displayed in the second editing window; in response to a color setting operation on the color adjustment panel, a target color corresponding to the color setting operation is determined; the color of the dyed area corresponding to the color identifier in the target edited component is updated according to the target color, and the color identifier in the color display area is updated according to the target color. In the above manner, the color of a dyed area in the target edited component can be adjusted individually.
[0060] In a specific implementation, the color adjustment panel may include the following three:
[0061] 1. Official preset color palette: Contains 36 official preset colors. You can directly select the official color to change the color of a certain dyed area of the target edited component.
[0062] 2. Custom color storage palette: Players can adjust the colors by themselves and store them on the current page. It can record 36 color information, which will be saved locally on the device, but the color information will not be synchronized when switching devices.
[0063] 3. Color palette: The color palette is an HSV color spectrum (hue, saturation, and brightness model color spectrum), which is divided into two color spectrums. One two-dimensional color spectrum can adjust the hue and saturation of the color, and the other one-dimensional color spectrum can adjust the brightness.
[0064] The three color adjustment panels above can manually input RGB colors and quickly select historical colors. However, in the above method, the player can only adjust the color corresponding to one dyed area in the target edited component each time. If the player wants to update the colors of multiple components, this method is cumbersome.
[0065] The color changing method in the above game can reduce the time cost and complicated interaction of players in coloring edited components in the process of editing edited components in the game editing scene. At the same time, many ordinary players may not have a clear theme or have not undergone relatively complete art color matching training when editing game editing scenes, so players may have a certain room for improvement in color matching during the editing process. The present disclosure can achieve better color matching through the colors in the alternative color matching entries, lowering the operation threshold and reducing the time cost of players' color matching. In addition, this method can change the colors of all dyed areas in the edited components at one time, improving the efficiency of color changing.
[0066] The following embodiment describes a method for determining the candidate colors included in the candidate color matching entry and corresponding to the dyed region included in the target edited component.
[0067] Specifically, the alternative colors included in the alternative color matching entry and corresponding to the dyed areas included in the target edited component are determined by the following steps: obtaining the number of dyed areas included in the target edited component; determining the alternative colors matching the number of areas from the first preset number of preset colors in the preset color matching combination in the preset color matching library; wherein the preset color matching library includes at least one preset color matching combination, the preset color matching combination includes the first preset number of preset colors, and the alternative colors are colors in the first preset number of preset colors. In this method, the number of alternative color matching included in the alternative color matching entry is the same as the number of dyed areas included in the target edited component.
[0068] In a specific implementation, the preset color library contains one or more preset color combinations, each preset color combination contains a first preset number of preset colors, and the specific value of the first preset number can be determined according to the research and development requirements, or according to the user's setting operation. For example, the first preset number can be 10 or 12. At the same time, the preset colors contained in different preset color combinations can be the same or different, and it can also be understood that the preset color combinations can contain the same preset colors or different preset colors. When two preset color combinations contain exactly the same preset colors, the color ordering between the preset colors in different preset color combinations is different.
[0069] In a specific embodiment, the first preset number of preset colors in the preset color combination are sorted according to a first preset order; the dyed areas in the target edited component are sorted according to a second preset order; the candidate colors are the preset colors in the first preset number of preset colors in the preset color combination that are ranked first in the first preset order and match the number of areas. Based on this, the specific process of updating the color of the dyed area included in the target edited component according to the candidate colors in the target color entry may include: based on the first preset order and the second preset order, updating the color of the dyed area included in the target edited component according to the candidate colors in the target color entry.
[0070] In an optional embodiment, the specific sorting rules corresponding to the first preset order and the second preset order can be determined according to research and development needs. For example, the first preset order can be to sort the preset colors in the preset color combination in the order of color proportion from large to small or from small to large; the second preset order can be to sort the dyed areas in the edited component in the order of area proportion from large to small or from small to large.
[0071] In another optional embodiment, the sorting rules corresponding to the first preset order and the second preset order can also be determined according to the user's setting operation. For example, the first preset order can be sorted according to the user's customized order of preset colors in the preset color combination. Similarly, the second preset order can also be sorted according to the user's customized order of the dyed areas in the edited component.
[0072] After determining the first preset order of the first preset number of preset colors in the preset color combination and the second preset order of the dyeing area in the target edited component, the alternative colors in the alternative color entry are the preset colors in the first preset number of preset colors in the preset color combination that are ranked first in the first preset order and match the number of areas. For example, the preset color combination includes 10 preset colors ranked in the first preset order, and the target edited component includes 4 dyeing areas ranked in the second preset order, then the alternative colors in the alternative color entry are the 4 preset colors ranked first in the preset color combination ranked in the first preset order, and the dyeing areas ranked in the second preset order are respectively configured with these 4 preset colors, that is, in the dyeing areas ranked in the first preset order, the color of the dyeing area ranked first is the preset color ranked first in the preset colors ranked in the second preset order in the alternative color entry, and the color of the dyeing area ranked second is the preset color ranked second in the alternative color entry, and so on, to obtain the color corresponding to each dyeing area.
[0073] In another optional embodiment, the first preset number of preset colors in the above-mentioned preset color combination correspond to different proportion intervals; the proportion interval is used to indicate: when the alternative color corresponding to the dyed area is the preset color in the preset color combination, the value range of the corresponding final proportion; the dyed area in the target edited component corresponds to a final proportion; the final proportion is determined based on the actual size of the target edited component and the area proportion of the dyed area in the target edited component; the alternative color corresponding to the dyed area is: the preset color corresponding to the proportion interval to which the final proportion corresponding to the dyed area belongs among the first preset number of preset colors in the preset color combination.
[0074] In one specific embodiment, in different preset color combinations, preset colors with the same ranking correspond to the same percentage interval. In another specific embodiment, in different preset color combinations, preset colors with the same ranking correspond to different percentage intervals, and the percentage interval corresponding to each preset color can be determined according to R&D requirements or according to user setting operations.
[0075] The method for determining the final proportion corresponding to the above-mentioned dyed area can be determined according to R&D needs, or according to the user's setting operation, for example, the actual size of the edited component is divided by the scene size to obtain the division result; wherein the scene size is determined based on the game scene information, and the game scene information is generated based on the game editing scene containing multiple edited components; for each dyed area in the edited component, the division result is multiplied by the area proportion corresponding to the dyed area to obtain the final proportion corresponding to the dyed area. The actual size of the above-mentioned edited component is the actual size of the edited component in the game editing scene, and the actual size is the product of the component size of the editable component corresponding to the edited component and the scaling value, and the scaling value can be determined according to the player's operation. Specifically, the scene size can be automatically calculated based on the game scene information.
[0076] For example, the target edited component includes dyed area 1 and dyed area 2, the final proportion corresponding to dyed area 1 is 0.1, and the final proportion corresponding to dyed area 2 is 0.25; the preset color combination includes preset color 1, preset color 2 and preset color 3, the proportion range corresponding to preset color 1 is 0.5 to 1, the proportion range corresponding to preset color 2 is 0.2-0.5, and the proportion range corresponding to preset color 3 is 0-0.2, therefore, the alternative color corresponding to dyed area 1 is preset color 3, and the alternative color corresponding to dyed area 2 is preset color 2.
[0077] In an optional embodiment, the player can customize the preset color combination in the following manner: in response to a copy operation on a target preset color combination in the preset color library, the target preset color combination is copied to a specified position in the graphical user interface; in response to a color modification operation on the target preset color combination at the specified position, the target preset color combination after the color modification is obtained; in response to a confirmation operation on the target preset color combination after the color modification, the target preset color combination after the color modification is added as a new preset color combination to the preset color library. In this manner, the player can create a customized preset color combination by modifying the colors in the preset color combination.
[0078] In specific implementation, the above-mentioned new preset color combination will be bound to the game account logged in by the terminal device, that is, the next time the player logs in to the game account, the preset color library will also contain a new preset color combination. The above-mentioned target preset color combination can be any preset color combination in the preset color library, and the specific preset color combination can be determined according to the player's operation. The designated location where the target preset color combination is copied can be determined according to R&D requirements, or according to the user's setting operation. The designated location can be a fixed location in the second editing window, or a fixed location in the graphical user interface, etc.
[0079] The following embodiment describes a method for performing one-click color change on all edited components in a game editing scene.
[0080] Specifically, the graphical user interface also displays a first interactive control, which can be displayed at any position of the graphical user interface, and can be determined according to research and development requirements or user setting operations; based on this, the specific process of implementing one-key color change of multiple edited components in the game editor may include the following steps 10-12:
[0081] Step 10, in response to a trigger operation on the first interactive control, display a third editing window in the graphical user interface; wherein the third editing window includes at least one scene color matching entry, and the scene color matching entry includes a third preset number of colors.
[0082] The third preset number mentioned above may be the same as or different from the first preset number. The specific value corresponding to the third preset number may be determined according to R&D requirements or according to the user's setting operation. For example, the third preset number may be 10 or 15. The scene color matching entry may be the same as or different from the alternative color matching entry in the color palette selection list; the scene color matching entry may also be the same as or different from the preset color matching combination in the preset color matching library. When the scene color matching entry is the same as the alternative color matching entry in the color palette selection list, the scheme of one-click color change for all edited components in the game editing scene is the same as the scheme of one-click color change for a single edited component in the game editor; of course, under the one-click color change function for all edited components in the game editing scene, new color matching bar entries, sorting logic, and color change schemes may also be provided.
[0083] In a specific implementation, the graphical user interface includes an image input control; the image input control provides an entry for uploading images; based on this, a new alternative color matching entry or scene color matching entry can be generated in the following manner: in response to inputting a target image in the image input control, color extraction processing is performed on the target image to obtain a second preset number of colors contained in the target image; a preset color matching combination or scene color matching entry is generated according to the second preset number of colors. The preset color matching combination or scene color matching entry generated in this manner can be bound to the game account logged in by the terminal device, that is, the village village is in the account information of the game account, so that when the device is changed to log in to the game account, the generated preset color matching combination or scene color matching entry can still be retained.
[0084] Among them, the second preset number can be the same as or different from the first preset number, and the second preset number can also be the same as or different from the third preset number. The specific value corresponding to the above-mentioned second preset number can be determined according to the research and development requirements, or according to the user's setting operation. For example, the second preset number can be 10 or 12. Specifically, the player can upload a picture of his own in the picture input control according to the requirements. After the server receives the picture, it will perform color extraction processing on the picture to obtain the color containing the second preset number, and then determine the second preset number of colors as a preset color combination and add it to the preset color library, or determine the second preset number of colors as a scene color entry. After the second preset number of colors is determined as a preset color combination and added to the preset color library, the preset color combination containing the second preset number of colors can also be used to change the color of the above-mentioned target edited component with one click, that is, the preset color combination can obtain an alternative color entry for providing an alternative color for the dyeing area of the target edited component.
[0085] In a specific embodiment, when generating a preset color combination according to the second preset number of colors, it is also necessary to sort the colors according to the weights corresponding to the second preset number of colors, where the weights are the proportions of the colors in the target image; and generate a preset color combination according to the sorted second preset number of colors. Specifically, the second preset number of colors can be sorted in descending order according to the weights to obtain the sorted second preset number of colors, and then the sorted second preset number of colors is determined as the preset color combination.
[0086] In this way, when players change the color of components in the game editing scene, the color scheme of the entire game editing scene can be consistent with the color scheme of the target image uploaded by the user, which increases the difficulty of color tone configuration and reduces the complexity of interaction.
[0087] Step 11, in response to a touch operation on the third editing window, determining a target scene color matching entry corresponding to the touch operation from at least one scene color matching entry.
[0088] The touch operation on the third editing window may be a click operation, a long press operation, or a drag operation on the target scene color matching entry in the scene color matching entry provided in the third editing window. The target scene color matching entry may be any one of the scene color matching entries provided in the third editing window, which may be determined according to the player's operation.
[0089] Step 12: Update the colors of the dyed areas in the multiple edited components included in the game editing scene according to a third preset number of colors in the target scene color matching entry.
[0090] In a specific implementation, after determining the target scene color matching entry, the colors of the dyed areas of all edited components included in the game editing scene may be updated according to the colors included in the target scene color matching entry.
[0091] In a specific embodiment, the above step 12 can also be implemented by the following steps 20-21:
[0092] Step 20, for each edited component among the multiple edited components included in the game editing scene, determine the target color corresponding to the dyed area in the edited component from a third preset number of colors in the target scene color matching entry according to the actual size of the edited component and the area ratio corresponding to the dyed area in the edited component; wherein the area ratio corresponding to the dyed area includes: the ratio of the size of the dyed area to the size of the edited component to which the dyed area belongs.
[0093] In the specific implementation, first, the actual size of the edited component needs to be divided by the scene size to obtain the division result; wherein, the scene size is determined based on the game scene information, and the game scene information is generated based on the game editing scene containing multiple edited components; for each dyed area in the edited component, the division result is multiplied by the area ratio corresponding to the dyed area to obtain the final ratio corresponding to the dyed area; according to the final ratio corresponding to the dyed area, the target color corresponding to the dyed area is determined from the third preset number of colors in the target scene color matching entry. The area ratio corresponding to the above-mentioned dyed area can be the ratio of the surface area of the dyed area to the surface area of the edited component to which the dyed area belongs. Among them, the surface area of the edited component and the surface area of the dyed area can be determined by texture expansion.
[0094] In actual applications, the graphical user interface includes a second interactive control. After the second interactive control is triggered by the terminal device, the game scene information corresponding to the game editing scene can be generated. The game scene information can be saved in a preset location, which can be a map file. The map file can not only save the game scene information, but also save other map information (including but not limited to screenshots, map names, logs, etc.). After the map file saves the game scene information, it will be uploaded to the server. After the server reviews it, the game scene generated by the game scene information can be published in the preset map pool, so that the terminal device connected to the server can download the corresponding game scene information from the server, and generate the corresponding game scene according to the game scene information through the game program, and then experience the game in the game scene. This method can publish the game scene information in the game editor and be experienced by other players, thereby realizing a fast UGC function.
[0095] In an optional embodiment, in the target scene color matching entry, different colors correspond to different proportion intervals, and the proportion intervals are used to indicate: when the target color corresponding to the dyed area is the color in the target scene color matching, the value range of the corresponding final proportion; based on this, the method for determining the target color corresponding to the dyed area may include: from the proportion intervals corresponding to the third preset number of colors in the target scene color matching entry, determining the target proportion interval to which the final proportion corresponding to the dyed area belongs, and determining the color in the target scene color matching entry corresponding to the target proportion interval as the target color corresponding to the dyed area.
[0096] For example, the target edited component includes dyed area 1 and dyed area 2, the final proportion corresponding to dyed area 1 is 0.1, and the final proportion corresponding to dyed area 2 is 0.25; the target scene color matching entry includes color 1, color 2 and color 3, the proportion range corresponding to color 1 is 0.5 to 1, the proportion range corresponding to color 2 is 0.2-0.5, and the proportion range corresponding to color 3 is 0-0.2, therefore, the target color corresponding to dyed area 1 is color 3, and the target color corresponding to dyed area 2 is color 2.
[0097] In a specific embodiment, in a scene color matching entry, different colors correspond to different proportion intervals; in different scene color matching entries, colors with the same ranking correspond to the same proportion intervals.
[0098] In another specific embodiment, in different scene color matching entries, the proportion intervals corresponding to colors with the same ranking are different, and the proportion interval corresponding to each color can be determined according to research and development needs, and can also be determined according to user setting operations.
[0099] Step 21, updating the colors of the dyed areas in the plurality of edited components to the target colors corresponding to the dyed areas.
[0100] Through the above method, all edited components in the game editing scene can be changed in color with one click, which saves players the complexity of changing the color of the edited components and helps to improve the player's gaming experience.
[0101] In an optional embodiment, the third editing window further includes an area selection control; the area selection control is used to select a scene area in the game editing scene; based on this, in response to a trigger operation on the area selection control, an area selection identifier is displayed in a graphical user interface; in response to a setting operation on the area selection identifier, based on the setting operation, a target scene area selected by the area selection identifier in the game editing scene is determined; in response to a selection operation on the first scene color matching entry in the third editing window, based on a third preset number of colors in the first scene color matching entry, the color of the dyed area in the edited component within the target scene area is updated.
[0102] In a specific implementation, the above-mentioned area selection mark can be a rectangular frame or a circular frame that can be expanded or reduced. The player can determine the target scene area by adjusting the range of the game editing scene framed by the area selection mark, that is, the scene range framed by the area selection mark is determined as the target scene area. Specifically, the above-mentioned first scene color matching entry can be any one of the scene color matching entries provided by the third editing window, which can be specifically determined according to the player's operation. The above-mentioned method of updating the color of the dyed area in the edited component in the target scene area based on the third preset number of colors in the first scene color matching entry is the same as the method of changing the color of all edited components in the game editing scene with one click, except that this method only changes the color of the edited components in the target scene area with one click.
[0103] In an optional embodiment, in response to a marking operation on a first edited component among multiple edited components, a marking feature of the first edited component is determined; in response to a color change operation on the first edited component, the color of the first edited component is updated to a color that matches the marking feature.
[0104] In a specific implementation, the above-mentioned first edited component can be any one of the multiple edited components included in the game editing scene. The specific component of the first edited component can be determined according to the player's operation. The player can mark the marking feature of the first edited component through a marking operation. The marking feature is used to indicate the feature of the edited component. For example, the marking feature can be a wall, road surface and other features. After the first edited component is marked as a wall feature, when the color of the first edited component is changed, the first edited component will be updated to the color corresponding to the wall feature set in advance. This method can set the edited components with the same marking features to the same color, which helps to improve the visual effect of the edited components in the game editing scene, and also makes the edited components with the same marking features have more fitting colors.
[0105] In view of the above method embodiment, the embodiment of the present disclosure further provides a color changing device in a game, which provides a graphical user interface through a terminal device; a game editing scene provided by running a game program is displayed in the graphical user interface, and the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to an editing operation; Figure 7 As shown, the device comprises:
[0106] The control display module 50 is used to respond to the setting operation of the target edited component among the multiple edited components and display the color palette selection control in the graphical user interface; wherein the target edited component includes at least one dyeing area, and the dyeing area is used to configure the color for the target edited component.
[0107] The list display module 51 is used to respond to the trigger operation of the color palette selection control and display the color palette selection list corresponding to the target edited component in the graphical user interface; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes the alternative colors of the dyeing area included in the target edited component;
[0108] The color determination module 52 is used to respond to a selection operation in the color palette selection list, determine a target color matching entry from at least one candidate color matching entry, and update the color of the dyeing area included in the target edited component according to the candidate colors in the target color matching entry.
[0109] The updating display module 53 is used to display the target edited component after the color of the dyed area is updated in the graphical user interface.
[0110] The color-changing device in the above-mentioned game can change the overall color of the dyed area in the edited component by selecting the alternative color matching entry in the color palette selection list, thereby improving the component color changing efficiency, reducing the player's color adjustment cost, and improving the player's gaming experience.
[0111] Specifically, the number of colors of the alternative colors included in the alternative color matching entries displayed in the color palette selection list is the same as the number of regions of the dyed regions included in the target edited component.
[0112] In an optional embodiment, in the target edited component, one dyed area corresponds to one color channel; the color channel is used to store color parameters of the dyed area and update the color of the dyed area according to the color parameters.
[0113] In a specific implementation, the above-mentioned device also includes a component editing module, which is used to: display a first editing window in a graphical user interface; wherein the first editing window includes multiple editable components; in response to a selection operation on a target editable component among the multiple editable components, control the generation of an edited component corresponding to the target editable component in the game editing scene.
[0114] Furthermore, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned control display module 50 is used to: respond to a trigger operation on a target edited component among multiple edited components, and select the target edited component; respond to a trigger operation on the setting control, and display a second editing window in the graphical user interface; wherein the second editing window includes: a color palette selection control, and the current color corresponding to the dyeing area contained in the target edited component.
[0115] Furthermore, the color determination module 52 is used to: respond to a trigger operation on the color palette selection list, display at least one alternative color entry provided by the color palette selection list in a graphical user interface, the alternative color entry including alternative colors corresponding to the dyed area contained in the target edited component; respond to a selection operation on a target color entry in at least one alternative color entry, replace the current color corresponding to the dyed area contained in the target edited component in the second editing window with the alternative color corresponding to the dyed area contained in the target edited component included in the target color entry.
[0116] In a specific implementation, the second editing window includes a color display area, which displays the color identifier of the current color, and different color identifiers correspond to the dyeing areas contained in the target edited component; the device also includes a color selection module, which is used to: respond to a touch operation on the color identifier, display a color adjustment panel in the second editing window; respond to a color setting operation on the color adjustment panel, and determine the target color corresponding to the color setting operation; update the color of the dyeing area corresponding to the color identifier in the target edited component according to the target color, and update the color identifier in the color display area according to the target color.
[0117] In a specific implementation, the alternative colors included in the above-mentioned alternative color entries and corresponding to the dyed areas contained in the target edited component are determined through the following steps: obtaining the number of areas of the dyed areas contained in the target edited component; determining alternative colors matching the number of areas from a first preset number of preset colors in a preset color combination in a preset color library; wherein the preset color library includes at least one preset color combination, the preset color combination includes a first preset number of preset colors, and the alternative colors are colors among the first preset number of preset colors.
[0118] Specifically, the first preset number of preset colors in the above-mentioned preset color combination are sorted according to a first preset order; the dyed area in the target edited component is sorted according to a second preset order; the alternative color is a preset color among the first preset number of preset colors in the preset color combination that is ranked higher in the first preset order and matches the number of areas; the above-mentioned color determination module 62 is used to: based on the first preset order and the second preset order, update the color of the dyed area contained in the target edited component according to the alternative color in the target color entry.
[0119] In another optional embodiment, the first preset number of preset colors in the above-mentioned preset color combination correspond to different proportion intervals; the dyed area in the target edited component corresponds to a final proportion; the final proportion is determined based on the actual size of the target edited component and the area proportion of the dyed area in the target edited component; the alternative color corresponding to the dyed area is: the preset color corresponding to the proportion interval to which the final proportion corresponding to the dyed area belongs among the first preset number of preset colors in the preset color combination.
[0120] Furthermore, the above-mentioned device also includes a customization module, which is used to: respond to a copy operation on a target preset color combination in a preset color library, and copy the target preset color combination to a specified position in a graphical user interface; respond to a color modification operation on the target preset color combination at a specified position, and obtain a target preset color combination after the color modification; respond to a confirmation operation on the target preset color combination after the color modification, and add the target preset color combination after the color modification as a new preset color combination to the preset color library.
[0121] In specific implementation, the new preset color combination is bound to the game account logged in by the terminal device.
[0122] Furthermore, a first interactive control is also displayed in the above-mentioned graphical user interface; the above-mentioned device also includes a scene color changing module, which is used to: respond to a trigger operation on the first interactive control, and display a third editing window in the graphical user interface; wherein the third editing window includes at least one scene color matching entry, and the scene color matching entry includes a third preset number of colors; in response to a touch operation on the third editing window, determine a target scene color matching entry corresponding to the touch operation from at least one scene color matching entry; and update the color of the dyed area in the multiple edited components included in the game editing scene according to the third preset number of colors in the target scene color matching entry.
[0123] Furthermore, the above-mentioned graphical user interface includes an image input control; the above-mentioned device also includes a color extraction module, which is used to: in response to the input of a target image in the image input control, perform color extraction processing on the target image to obtain a second preset number of colors contained in the target image; and generate a preset color combination or scene color entry based on the second preset number of colors.
[0124] In a specific implementation, the color extraction module is further used to: sort the colors according to the weights corresponding to the second preset number of colors, where the weight is the proportion of the color in the target image; and generate a preset color combination according to the sorted second preset number of colors.
[0125] Furthermore, the above-mentioned scene color changing module is also used to: for each edited component among the multiple edited components included in the game editing scene, determine the target color corresponding to the dyed area in the edited component from the third preset number of colors in the target scene color matching entry according to the actual size of the edited component and the area ratio corresponding to the dyed area in the edited component; wherein the area ratio corresponding to the dyed area includes: the ratio of the size of the dyed area to the size of the edited component to which the dyed area belongs; and update the colors of the dyed areas in the multiple edited components to the target colors corresponding to the dyed areas.
[0126] Furthermore, the above-mentioned scene color changing module is also used to: divide the actual size of the edited component by the scene size to obtain a division result; wherein the scene size is determined based on the game scene information, and the game scene information is generated based on the game editing scene containing multiple edited components; for each dyed area in the edited component, multiply the division result by the area proportion corresponding to the dyed area to obtain a final proportion corresponding to the dyed area; according to the final proportion corresponding to the dyed area, determine the target color corresponding to the dyed area from the third preset number of colors in the target scene color matching entry.
[0127] Furthermore, in the target scene color matching entry, different colors correspond to different proportion intervals, and the proportion intervals are used to indicate: when the target color corresponding to the dyed area is the color in the target scene color matching, the corresponding final proportion value range; the above-mentioned scene color changing module is also used to: determine the target proportion interval to which the final proportion corresponding to the dyed area belongs from the proportion intervals corresponding to the third preset number of colors in the target scene color matching entry, and determine the color in the target scene color matching entry corresponding to the target proportion interval as the target color corresponding to the dyed area.
[0128] In a specific implementation, in the above scene color matching entries, different colors correspond to different proportion intervals; in different scene color matching entries, colors with the same ranking correspond to the same proportion intervals.
[0129] Furthermore, the third editing window also includes an area selection control; the area selection control is used to select a scene area in the game editing scene; the device also includes a local color change module, which is used to: respond to a trigger operation on the area selection control, and display an area selection mark in a graphical user interface; respond to a setting operation on the area selection mark, and determine the target scene area selected by the area selection mark in the game editing scene based on the setting operation; respond to a selection operation on the first scene color matching entry in the third editing window, and update the color of the dyed area in the edited component within the target scene area based on a third preset number of colors in the first scene color matching entry.
[0130] Furthermore, the above-mentioned device also includes a feature marking module, which is used to: respond to a marking operation on a first edited component among multiple edited components, determine the marking feature of the first edited component; respond to a color change operation on the first edited component, update the color of the first edited component to a color matching the marking feature.
[0131] The object selection device in the game provided by the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0132] The present disclosure also provides an electronic device, such as Figure 8 As shown, the electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the color changing method in the above game.
[0133] Specifically, a graphical user interface is provided through a terminal device, and a game editing scene provided by running a game program is displayed in the graphical user interface, wherein the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to editing operations; the color changing method in the above-mentioned game comprises: in response to a setting operation for a target edited component among the plurality of edited components, a color palette selection control is displayed in the graphical user interface; wherein the target edited component includes at least one dyeing area, and the dyeing area is used to configure a color for the target edited component; in response to a triggering operation for the color palette selection control, a color palette selection list corresponding to the target edited component is displayed in the graphical user interface; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes alternative colors of the dyeing area contained in the target edited component; in response to a selection operation in the color palette selection list, a target color matching entry is determined from at least one alternative color matching entry, and the color of the dyeing area contained in the target edited component is updated according to the alternative colors in the target color matching entry; and the target edited component after the color of the dyeing area is updated is displayed in the graphical user interface.
[0134] The color changing method in the above game can change the overall color of the dyed area in the edited component by selecting the alternative color matching entry in the color palette selection list, which improves the component color changing efficiency, reduces the player's color adjustment cost, and enhances the player's gaming experience.
[0135] In an optional embodiment, the number of colors of the alternative colors included in the alternative color matching entries displayed in the color palette selection list is the same as the number of regions of the dyed regions included in the target edited component.
[0136] In an optional embodiment, in the target edited component, one dyed area corresponds to one color channel; the color channel is used to store color parameters of the dyed area and update the color of the dyed area according to the color parameters.
[0137] In an optional embodiment, the above method also includes: displaying a first editing window in a graphical user interface; wherein the first editing window includes multiple editable components; in response to a selection operation on a target editable component among the multiple editable components, controlling the generation of an edited component corresponding to the target editable component in the game editing scene.
[0138] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step of displaying a color palette selection control in the graphical user interface in response to a setting operation on a target edited component among multiple edited components includes: responding to a trigger operation on a target edited component among multiple edited components, selecting the target edited component; responding to the trigger operation on the setting control, displaying a second editing window in the graphical user interface; wherein the second editing window includes: a color palette selection control, and the current color corresponding to the dyeing area contained in the target edited component.
[0139] In an optional embodiment, the above-mentioned step of determining a target color scheme entry from at least one alternative color scheme entry in response to a selection operation in a color palette selection list, and updating the color of a dyed area contained in a target edited component according to the alternative color scheme in the target color scheme entry includes: in response to a trigger operation acting on the color palette selection list, displaying at least one alternative color scheme entry provided by the color palette selection list in a graphical user interface, the alternative color scheme entry including alternative colors corresponding to the dyed area contained in the target edited component; in response to a selection operation on a target color scheme entry in at least one alternative color scheme entry, replacing a current color corresponding to the dyed area contained in the target edited component in the second editing window with an alternative color corresponding to the dyed area contained in the target edited component included in the target color scheme entry.
[0140] In an optional embodiment, the second editing window includes a color display area, which displays the color identifier of the current color, and different color identifiers correspond to the dyeing areas contained in the target edited component; the method also includes: responding to a touch operation on the color identifier, displaying a color adjustment panel in the second editing window; responding to a color setting operation on the color adjustment panel, determining a target color corresponding to the color setting operation; updating the color of the dyeing area corresponding to the color identifier in the target edited component according to the target color, and updating the color identifier in the color display area according to the target color.
[0141] In an optional embodiment, the alternative colors included in the above-mentioned alternative color entries and corresponding to the dyed areas contained in the target edited component are determined by the following steps: obtaining the number of areas of the dyed areas contained in the target edited component; determining alternative colors matching the number of areas from a first preset number of preset colors in a preset color combination in a preset color library; wherein the preset color library includes at least one preset color combination, the preset color combination includes a first preset number of preset colors, and the alternative colors are colors among the first preset number of preset colors.
[0142] In an optional embodiment, the first preset number of preset colors in the above-mentioned preset color combination are sorted according to a first preset order; the dyed area in the target edited component is sorted according to a second preset order; the alternative color is a preset color among the first preset number of preset colors in the preset color combination that is ranked higher in the first preset order and matches the number of areas; the above-mentioned step of updating the color of the dyed area contained in the target edited component according to the alternative color in the target color entry includes: based on the first preset order and the second preset order, updating the color of the dyed area contained in the target edited component according to the alternative color in the target color entry.
[0143] In an optional embodiment, the first preset number of preset colors in the above-mentioned preset color combination correspond to different proportion intervals; the dyed area in the target edited component corresponds to a final proportion; the final proportion is determined based on the actual size of the target edited component and the area proportion of the dyed area in the target edited component; the alternative color corresponding to the dyed area is: the preset color corresponding to the proportion interval to which the final proportion corresponding to the dyed area belongs among the first preset number of preset colors in the preset color combination.
[0144] In an optional embodiment, the above method also includes: responding to a copy operation on a target preset color combination in a preset color library, copying the target preset color combination to a specified position in a graphical user interface; responding to a color modification operation on the target preset color combination at the specified position, obtaining a target preset color combination after the color modification; responding to a confirmation operation on the target preset color combination after the color modification, adding the target preset color combination after the color modification as a new preset color combination to the preset color library.
[0145] In an optional embodiment, the new preset color combination is bound to the game account logged in by the terminal device.
[0146] In an optional embodiment, a first interactive control is also displayed in the above-mentioned graphical user interface; the above-mentioned method also includes: in response to a trigger operation on the first interactive control, displaying a third editing window in the graphical user interface; wherein the third editing window includes at least one scene color matching entry, and the scene color matching entry includes a third preset number of colors; in response to a touch operation on the third editing window, determining a target scene color matching entry corresponding to the touch operation from at least one scene color matching entry; and updating the colors of the dyed areas in the multiple edited components included in the game editing scene according to the third preset number of colors in the target scene color matching entry.
[0147] In an optional embodiment, the above-mentioned graphical user interface includes a picture input control; the above-mentioned method also includes: in response to inputting a target picture into the picture input control, performing color extraction processing on the target picture to obtain a second preset number of colors contained in the target picture; and generating a preset color combination or scene color entry based on the second preset number of colors.
[0148] In an optional embodiment, the above-mentioned step of generating a preset color combination based on a second preset number of colors includes: sorting the colors according to the weights corresponding to the second preset number of colors, where the weight is the proportion of the color in the target image; and generating a preset color combination based on the sorted second preset number of colors.
[0149] In an optional embodiment, the step of updating the colors of the dyed areas in the multiple edited components included in the game editing scene according to the third preset number of colors in the target scene color entry includes: for each of the multiple edited components included in the game editing scene, according to the actual size of the edited component and the area ratio corresponding to the dyed area in the edited component, determine the target color corresponding to the dyed area in the edited component from the third preset number of colors in the target scene color entry; wherein the area ratio corresponding to the dyed area includes: the ratio of the size of the dyed area to the size of the edited component to which the dyed area belongs; and updating the colors of the dyed areas in the multiple edited components to the target colors corresponding to the dyed areas.
[0150] In an optional embodiment, the above-mentioned step of determining the target color corresponding to the dyed area in the edited component from a third preset number of colors in the target scene color entry based on the actual size of the edited component and the area ratio corresponding to the dyed area in the edited component includes: dividing the actual size of the edited component by the scene size to obtain a division result; wherein the scene size is determined based on game scene information, and the game scene information is generated based on a game editing scene containing multiple edited components; for each dyed area in the edited component, multiplying the division result by the area ratio corresponding to the dyed area to obtain a final ratio corresponding to the dyed area; and determining the target color corresponding to the dyed area from the third preset number of colors in the target scene color entry based on the final ratio corresponding to the dyed area.
[0151] In an optional embodiment, in the above-mentioned target scene color matching entry, different colors correspond to different proportion intervals, and the proportion intervals are used to indicate: when the target color corresponding to the dyed area is the color in the target scene color matching, the value range of the corresponding final proportion; the above-mentioned step of determining the target color corresponding to the dyed area from the third preset number of colors in the target scene color matching entry according to the final proportion corresponding to the dyed area includes: determining the target proportion interval to which the final proportion corresponding to the dyed area belongs from the proportion intervals corresponding to the third preset number of colors in the target scene color matching entry, and determining the color in the target scene color matching entry corresponding to the target proportion interval as the target color corresponding to the dyed area.
[0152] In an optional embodiment, in the above scene color matching entries, different colors correspond to different proportion intervals; in different scene color matching entries, colors with the same ranking correspond to the same proportion intervals.
[0153] In an optional embodiment, the third editing window further includes an area selection control; the area selection control is used to select a scene area in the game editing scene; the method further includes: responding to a trigger operation on the area selection control, displaying an area selection identifier in a graphical user interface; responding to a setting operation on the area selection identifier, and determining, based on the setting operation, a target scene area selected by the area selection identifier in the game editing scene; responding to a selection operation on the first scene color matching entry in the third editing window, and updating the color of the dyed area in the edited component within the target scene area based on a third preset number of colors in the first scene color matching entry.
[0154] In an optional embodiment, the above method also includes: in response to a marking operation on a first edited component among multiple edited components, determining a marking feature of the first edited component; in response to a color change operation on the first edited component, updating the color of the first edited component to a color that matches the marking feature.
[0155] Further, Figure 8 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0156] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0157] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 101. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.
[0158] The embodiment of the present disclosure also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the color changing method in the above-mentioned game. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0159] Specifically, a graphical user interface is provided through a terminal device, and a game editing scene provided by running a game program is displayed in the graphical user interface, wherein the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to editing operations; the color changing method in the above-mentioned game comprises: in response to a setting operation for a target edited component among the plurality of edited components, a color palette selection control is displayed in the graphical user interface; wherein the target edited component includes at least one dyeing area, and the dyeing area is used to configure a color for the target edited component; in response to a triggering operation for the color palette selection control, a color palette selection list corresponding to the target edited component is displayed in the graphical user interface; wherein the color palette selection list includes at least one alternative color matching entry; the alternative color matching entry includes alternative colors of the dyeing area contained in the target edited component; in response to a selection operation in the color palette selection list, a target color matching entry is determined from at least one alternative color matching entry, and the color of the dyeing area contained in the target edited component is updated according to the alternative colors in the target color matching entry; and the target edited component after the color of the dyeing area is updated is displayed in the graphical user interface.
[0160] The color changing method in the above game can change the overall color of the dyed area in the edited component by selecting the alternative color matching entry in the color palette selection list, which improves the component color changing efficiency, reduces the player's color adjustment cost, and enhances the player's gaming experience.
[0161] In an optional embodiment, the number of colors of the alternative colors included in the alternative color matching entries displayed in the color palette selection list is the same as the number of regions of the dyed regions included in the target edited component.
[0162] In an optional embodiment, in the target edited component, one dyed area corresponds to one color channel; the color channel is used to store color parameters of the dyed area and update the color of the dyed area according to the color parameters.
[0163] In an optional embodiment, the above method also includes: displaying a first editing window in a graphical user interface; wherein the first editing window includes multiple editable components; in response to a selection operation on a target editable component among the multiple editable components, controlling the generation of an edited component corresponding to the target editable component in the game editing scene.
[0164] In an optional embodiment, a setting control is displayed in the above-mentioned graphical user interface; the above-mentioned step of displaying a color palette selection control in the graphical user interface in response to a setting operation on a target edited component among multiple edited components includes: responding to a trigger operation on a target edited component among multiple edited components, selecting the target edited component; responding to the trigger operation on the setting control, displaying a second editing window in the graphical user interface; wherein the second editing window includes: a color palette selection control, and the current color corresponding to the dyeing area contained in the target edited component.
[0165] In an optional embodiment, the above-mentioned step of determining a target color scheme entry from at least one alternative color scheme entry in response to a selection operation in a color palette selection list, and updating the color of a dyed area contained in a target edited component according to the alternative color scheme in the target color scheme entry includes: in response to a trigger operation acting on the color palette selection list, displaying at least one alternative color scheme entry provided by the color palette selection list in a graphical user interface, the alternative color scheme entry including alternative colors corresponding to the dyed area contained in the target edited component; in response to a selection operation on a target color scheme entry in at least one alternative color scheme entry, replacing a current color corresponding to the dyed area contained in the target edited component in the second editing window with an alternative color corresponding to the dyed area contained in the target edited component included in the target color scheme entry.
[0166] In an optional embodiment, the second editing window includes a color display area, which displays the color identifier of the current color, and different color identifiers correspond to the dyeing areas contained in the target edited component; the method also includes: responding to a touch operation on the color identifier, displaying a color adjustment panel in the second editing window; responding to a color setting operation on the color adjustment panel, determining a target color corresponding to the color setting operation; updating the color of the dyeing area corresponding to the color identifier in the target edited component according to the target color, and updating the color identifier in the color display area according to the target color.
[0167] In an optional embodiment, the alternative colors included in the above-mentioned alternative color entries and corresponding to the dyed areas contained in the target edited component are determined by the following steps: obtaining the number of areas of the dyed areas contained in the target edited component; determining alternative colors matching the number of areas from a first preset number of preset colors in a preset color combination in a preset color library; wherein the preset color library includes at least one preset color combination, the preset color combination includes a first preset number of preset colors, and the alternative colors are colors among the first preset number of preset colors.
[0168] In an optional embodiment, the first preset number of preset colors in the above-mentioned preset color combination are sorted according to a first preset order; the dyed area in the target edited component is sorted according to a second preset order; the alternative color is a preset color among the first preset number of preset colors in the preset color combination that is ranked higher in the first preset order and matches the number of areas; the above-mentioned step of updating the color of the dyed area contained in the target edited component according to the alternative color in the target color entry includes: based on the first preset order and the second preset order, updating the color of the dyed area contained in the target edited component according to the alternative color in the target color entry.
[0169] In an optional embodiment, the first preset number of preset colors in the above-mentioned preset color combination correspond to different proportion intervals; the dyed area in the target edited component corresponds to a final proportion; the final proportion is determined based on the actual size of the target edited component and the area proportion of the dyed area in the target edited component; the alternative color corresponding to the dyed area is: the preset color corresponding to the proportion interval to which the final proportion corresponding to the dyed area belongs among the first preset number of preset colors in the preset color combination.
[0170] In an optional embodiment, the above method also includes: responding to a copy operation on a target preset color combination in a preset color library, copying the target preset color combination to a specified position in a graphical user interface; responding to a color modification operation on the target preset color combination at the specified position, obtaining a target preset color combination after the color modification; responding to a confirmation operation on the target preset color combination after the color modification, adding the target preset color combination after the color modification as a new preset color combination to the preset color library.
[0171] In an optional embodiment, the new preset color combination is bound to the game account logged in by the terminal device.
[0172] In an optional embodiment, a first interactive control is also displayed in the above-mentioned graphical user interface; the above-mentioned method also includes: in response to a trigger operation on the first interactive control, displaying a third editing window in the graphical user interface; wherein the third editing window includes at least one scene color matching entry, and the scene color matching entry includes a third preset number of colors; in response to a touch operation on the third editing window, determining a target scene color matching entry corresponding to the touch operation from at least one scene color matching entry; and updating the colors of the dyed areas in the multiple edited components included in the game editing scene according to the third preset number of colors in the target scene color matching entry.
[0173] In an optional embodiment, the above-mentioned graphical user interface includes a picture input control; the above-mentioned method also includes: in response to inputting a target picture into the picture input control, performing color extraction processing on the target picture to obtain a second preset number of colors contained in the target picture; and generating a preset color combination or scene color entry based on the second preset number of colors.
[0174] In an optional embodiment, the above-mentioned step of generating a preset color combination based on a second preset number of colors includes: sorting the colors according to the weights corresponding to the second preset number of colors, where the weight is the proportion of the color in the target image; and generating a preset color combination based on the sorted second preset number of colors.
[0175] In an optional embodiment, the step of updating the colors of the dyed areas in the multiple edited components included in the game editing scene according to the third preset number of colors in the target scene color entry includes: for each of the multiple edited components included in the game editing scene, according to the actual size of the edited component and the area ratio corresponding to the dyed area in the edited component, determine the target color corresponding to the dyed area in the edited component from the third preset number of colors in the target scene color entry; wherein the area ratio corresponding to the dyed area includes: the ratio of the size of the dyed area to the size of the edited component to which the dyed area belongs; and updating the colors of the dyed areas in the multiple edited components to the target colors corresponding to the dyed areas.
[0176] In an optional embodiment, the above-mentioned step of determining the target color corresponding to the dyed area in the edited component from a third preset number of colors in the target scene color entry based on the actual size of the edited component and the area ratio corresponding to the dyed area in the edited component includes: dividing the actual size of the edited component by the scene size to obtain a division result; wherein the scene size is determined based on game scene information, and the game scene information is generated based on a game editing scene containing multiple edited components; for each dyed area in the edited component, multiplying the division result by the area ratio corresponding to the dyed area to obtain a final ratio corresponding to the dyed area; and determining the target color corresponding to the dyed area from the third preset number of colors in the target scene color entry based on the final ratio corresponding to the dyed area.
[0177] In an optional embodiment, in the above-mentioned target scene color matching entry, different colors correspond to different proportion intervals, and the proportion intervals are used to indicate: when the target color corresponding to the dyed area is the color in the target scene color matching, the value range of the corresponding final proportion; the above-mentioned step of determining the target color corresponding to the dyed area from the third preset number of colors in the target scene color matching entry according to the final proportion corresponding to the dyed area includes: determining the target proportion interval to which the final proportion corresponding to the dyed area belongs from the proportion intervals corresponding to the third preset number of colors in the target scene color matching entry, and determining the color in the target scene color matching entry corresponding to the target proportion interval as the target color corresponding to the dyed area.
[0178] In an optional embodiment, in the above scene color matching entries, different colors correspond to different proportion intervals; in different scene color matching entries, colors with the same ranking correspond to the same proportion intervals.
[0179] In an optional embodiment, the third editing window further includes an area selection control; the area selection control is used to select a scene area in the game editing scene; the method further includes: responding to a trigger operation on the area selection control, displaying an area selection identifier in a graphical user interface; responding to a setting operation on the area selection identifier, and determining, based on the setting operation, a target scene area selected by the area selection identifier in the game editing scene; responding to a selection operation on the first scene color matching entry in the third editing window, and updating the color of the dyed area in the edited component within the target scene area based on a third preset number of colors in the first scene color matching entry.
[0180] In an optional embodiment, the above method also includes: in response to a marking operation on a first edited component among multiple edited components, determining a marking feature of the first edited component; in response to a color change operation on the first edited component, updating the color of the first edited component to a color that matches the marking feature.
[0181] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0182] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0183] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A color changing method in a game, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: Displaying a game editing scene in the graphical user interface, wherein the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to an editing operation, wherein the edited components include at least one dyeing area, and the dyeing area is used to configure a color for the edited components; Displaying an editing window, wherein the editing window includes a plurality of color matching entries representing different color matching themes, wherein the color matching entries include the color matching corresponding to the dyeing area included in the edited component; Determine a color matching entry of a target color matching theme from the plurality of color matching entries according to a color matching entry selection operation; The color of the dyed area of the edited component in the game editing scene is updated according to the color included in the color entry.
2. The method according to claim 1, characterized in that The method of updating the color of the dyed area of the edited component in the game editing scene according to the color included in the color entry is: updating the color of the dyed area of the target edited component in the game editing scene according to the color included in the color entry, wherein the target edited component is a component selected by a user from multiple edited components in the game editing scene or an edited component included in the scene area in the game editing scene selected by the user.
3. The method according to claim 1, characterized in that The method further comprises: In response to the area selection operation, displaying an area selection interface on the graphical user interface, the area selection interface including an area selection range and at least a portion of the game editing scene displayed in the area selection range; Determining an edited component included in at least a portion of the game editing scene as a target edited component; The step of updating the color of the dyed area of the edited component in the game editing scene according to the color included in the color entry is: updating the color of the dyed area of the target edited component in the game editing scene according to the color included in the color entry.
4. The method according to claim 1, characterized in that: The method further comprises: In response to the area selection operation, displaying an area selection scene on the graphical user interface, the area selection scene including at least part of the game editing scene and an area reflecting the area selection range, wherein the at least part of the game editing scene is determined by the game editing scene and the area selection range; Determining an edited component included in at least a portion of the game editing scene as a target edited component; The step of updating the color of the dyed area of the edited component in the game editing scene according to the color included in the color entry is: updating the color of the dyed area of the target edited component in the game editing scene according to the color included in the color entry.
5. The method according to claim 3, characterized in that: The method further comprises: The game editing scene screen displayed on the graphical user interface is formed by a virtual camera set in the game editing scene capturing the game editing scene according to the camera perspective. The edited components contained in the game editing scene screen obtained by the virtual camera capturing the game editing scene through different camera perspectives are different.
6. The method according to claim 1, characterized in that In the edited component, one dyed area corresponds to one color channel; the color channel is used to store the color parameters of the dyed area and update the color of the dyed area according to the color parameters.
7. The method according to claim 1, characterized in that The edited component has a first area number of dyed areas, and the color matching entry includes a first preset number of pre-selected colors, wherein the first preset number is greater than or equal to the first area number.
8. The method according to claim 7, characterized in that The first preset number of preset colors in the color matching entry are sorted according to a first preset order; the dyed areas in the edited component are sorted according to a second preset order; The candidate colors for updating the dyed area are preset colors in the color matching entry that are ranked first in the first preset sequence and match the number of areas; The step of updating the color of the dyed area of the edited component in the game editing scene according to the color scheme contained in the color scheme entry includes: Based on the first preset order and the second preset order, the color of the dyed area of the edited component in the game editing scene is updated according to the alternative colors included in the color matching entry.
9. The method according to claim 7, characterized in that: The first preset number of preset colors in the color matching entry correspond to different proportion intervals; the dyed area in the edited component corresponds to a final proportion; the alternative color corresponding to the dyed area is: the preset color corresponding to the proportion interval to which the final proportion corresponding to the dyed area belongs among the first preset number of preset colors in the color matching entry.
10. A color changing method in a game, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: Displaying a game editing scene in the graphical user interface, wherein the game editing scene includes a plurality of edited components; the edited components are editing components set in the game editing scene in response to an editing operation, wherein the edited components include at least one dyeing area, and the dyeing area is used to configure a color for the edited components; In response to inputting a target image through an image input control located on the graphical user interface, performing color extraction processing on the target image to obtain a second preset number of colors contained in the target image; generating a color matching entry according to the second preset number of colors; The color of the dyed area of the edited component in the game editing scene is updated according to the color included in the color entry.
11. The method according to claim 10, characterized in that The dyed areas in the edited components are sorted according to a second preset order; the colors in the color matching entries corresponding to the target image are sorted according to a weight sorting order, wherein the weight is the proportion of the color in the target image; Based on the weight sorting order and the second preset order, the color of the dyed area of the edited component in the game editing scene is updated according to the color scheme included in the color scheme entry.
12. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the color changing method in the game described in any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the color-changing method in the game described in any one of claims 1 to 11.