CN111243378A - Drawing method and device based on fractal Brown motion model - Google Patents

Drawing method and device based on fractal Brown motion model Download PDF

Info

Publication number
CN111243378A
CN111243378A CN202010184772.0A CN202010184772A CN111243378A CN 111243378 A CN111243378 A CN 111243378A CN 202010184772 A CN202010184772 A CN 202010184772A CN 111243378 A CN111243378 A CN 111243378A
Authority
CN
China
Prior art keywords
user
basic graph
drawing area
touch operation
motion model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010184772.0A
Other languages
Chinese (zh)
Other versions
CN111243378B (en
Inventor
邓立邦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Intellvision Technology Co ltd
Original Assignee
Guangdong Intellvision Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Intellvision Technology Co ltd filed Critical Guangdong Intellvision Technology Co ltd
Priority to CN202010184772.0A priority Critical patent/CN111243378B/en
Publication of CN111243378A publication Critical patent/CN111243378A/en
Application granted granted Critical
Publication of CN111243378B publication Critical patent/CN111243378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B11/00Teaching hand-writing, shorthand, drawing, or painting
    • G09B11/10Teaching painting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display

Abstract

The embodiment of the application discloses a drawing method and device based on a fractal Brownian motion model. According to the technical scheme, the basic graph selected by the user is determined in real time through the preset basic graph for the user to select, and the corresponding basic graph is generated at the corresponding position of the drawing area according to the touch operation of the user in the drawing area. By adopting the technical means, the complicated operation of a user in the drawing process can be simplified, and the drawing of the drawing work can be quickly finished by selecting the basic graph and determining the placement position of the basic graph, so that the drawing learning and operating cost is reduced. In addition, the basic graph of the embodiment of the application randomly selects the generating direction according to the fractal Brownian motion model and is drawn on the drawing area, so that the self-similarity of each basic graph can be guaranteed, and the interestingness of drawing is increased.

Description

Drawing method and device based on fractal Brown motion model
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a drawing method and device based on a fractal Brownian motion model.
Background
At present, with the improvement of living standard of people, the demand of self mental life is gradually improved, and drawing is a common artistic expression form for enriching the mental life of people. Traditional painting methods require painters to manually paint pictures, and excellent painting works have relatively high requirements on painting techniques of the painters. Along with the continuous development and progress of scientific and intelligent technology, a plurality of intelligent painting products or tools appear on the market, and the intelligent painting products or tools are used for painting, so that painters can be effectively assisted to paint high-quality painting works, and the requirements of people on spiritual life are met.
However, most of the existing painting products and tools require a painter to have a certain professional painting skill to draw a painting work with a good effect, and for most people without painting and design basis, the operation and learning cost of the existing products is relatively high, and the existing intelligent painting products are difficult to create a painting work with a full composition and high quality in a short time.
Disclosure of Invention
The embodiment of the application provides a drawing method and device based on a fractal Brownian motion model, electronic equipment and a storage medium, which can simplify drawing operation, reduce the cost of drawing learning and operation and increase the interest of drawing.
In a first aspect, an embodiment of the present application provides a drawing method based on a fractal brownian motion model, including:
responding to a first touch operation of a user, and determining a basic graph selected by the user, wherein the basic graph is preset for the user to select;
and responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to the fractal Brownian motion model.
Further, the generating the basic graph at the corresponding position of the drawing area in response to a second touch operation of the user at the drawing area includes:
responding to a second touch operation of a user in a drawing area, and determining a first click position corresponding to the second touch operation on the drawing area;
and generating the basic graph by taking the first point by position as a generation starting point of the basic graph.
Further, the generating the basic graph at the corresponding position of the drawing area in response to a second touch operation of the user at the drawing area further includes:
responding to a second touch operation of a user in a drawing area, and determining the click-press duration corresponding to the second touch operation;
and determining the size of the basic graph on the drawing area according to the point-by-point duration.
Further, the determining the size of the basic graph on the drawing area according to the point-by-point duration includes:
setting building levels corresponding to different point-by-point durations of the basic graph in advance, determining the corresponding building levels according to the point-by-point durations in real time, and generating the basic graph with the corresponding size on the drawing area based on the building levels.
Further, after the generating the basic graph at the corresponding position of the drawing area in response to the second touch operation of the user on the drawing area, the method further includes:
and responding to a third touch operation of a user, selecting the corresponding basic graph, and adjusting the direction of the corresponding basic graph on the drawing area according to the sliding direction of the third touch operation.
Further, the selecting the corresponding basic graph in response to a third touch operation of the user includes:
and determining a second point-pressing position of the third touch operation in the drawing area, and selecting the corresponding basic graph within a set distance range by taking the second point-pressing position as a center.
Further, after the generating the basic graph at the corresponding position of the drawing area in response to the second touch operation of the user on the drawing area, the method further includes:
and responding to a fourth touch operation of the user, and deleting the corresponding basic graph from the drawing area.
In a second aspect, an embodiment of the present application provides a drawing device based on a fractal brownian motion model, including:
the selection module is used for responding to a first touch operation of a user and determining a basic graph selected by the user, wherein the basic graph is preset for the user to select;
and the generating module is used for responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to the fractal Brownian motion model and the fractal Brownian motion model by the basic graph.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a fractal brownian motion model-based drawing method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the fractal brownian motion model based drawing method according to the first aspect when executed by a computer processor.
According to the method and the device for generating the basic graph, the basic graph selected by the user is determined in real time through the preset basic graph for the user to select, and the corresponding basic graph is generated at the corresponding position of the drawing area according to the touch operation of the user in the drawing area. By adopting the technical means, the complicated operation of a user in the drawing process can be simplified, and the drawing of the drawing work can be quickly finished by selecting the basic graph and determining the placement position of the basic graph, so that the drawing learning and operating cost is reduced. In addition, the basic graph of the embodiment of the application randomly selects the generating direction according to the fractal Brownian motion model and is drawn on the drawing area, so that the self-similarity of each basic graph can be guaranteed, and the interestingness of drawing is increased.
Drawings
Fig. 1 is a flowchart of a drawing method based on a fractal brownian motion model according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a pictorial representation produced by the drawing method provided in one embodiment of the present application;
FIG. 3 is a flowchart of generating a basic graph according to an embodiment of the present application;
FIG. 4 is a flowchart of basic graph sizing according to an embodiment of the present application;
fig. 5 is a flowchart of another drawing method based on a fractal brownian motion model according to the second embodiment of the present application;
fig. 6 is a flowchart of another drawing method based on a fractal brownian motion model according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a drawing apparatus based on a fractal brownian motion model according to a fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The fractal Brown motion model-based drawing method aims to reduce the technical requirement of drawing and improve drawing efficiency by presetting a basic graph. And the feature that the fractal Brownian motion model has self-similarity is utilized, the generation direction of the basic graph is randomly selected through the fractal Brownian motion model, and the self-similarity of the generation direction of the basic graph is ensured, so that the quality of the painting work is ensured, and the interestingness of painting is increased. Compare in current intelligent drawing instrument, its when supplementary user draws, just simply provide some simple and easy elements like lines or circle etc. the user still needs self to possess certain drawing basis to draw high-quality pictorial work. Other intelligent drawing tools convert photographs provided by users directly into pictorial works in corresponding forms (such as sketches, paintings, etc.). Although this drawing method does not require a drawing technical basis for the user, in practice, the drawing participation is relatively weak and the drawing interest is not high. Therefore, the drawing method based on the fractal Brownian motion model is provided to solve the technical problems that the existing intelligent drawing tool requires high drawing foundation, complicated drawing operation and low drawing interestingness.
The first embodiment is as follows:
fig. 1 is a flowchart of a drawing method based on a fractal brownian motion model according to an embodiment of the present application, where the drawing method based on the fractal brownian motion model provided in this embodiment may be executed by a drawing device based on the fractal brownian motion model, the drawing device based on the fractal brownian motion model may be implemented in a software and/or hardware manner, and the drawing device based on the fractal brownian motion model may be formed by two or more physical entities or may be formed by one physical entity. Generally speaking, the drawing device based on the fractal brownian motion model can be a computer, a mobile phone, a tablet, an electronic whiteboard and other terminal devices.
The following description will be given taking a drawing device based on a fractal brownian motion model as an example of a device for executing a drawing method based on a fractal brownian motion model. Referring to fig. 1, the drawing method based on the fractal brownian motion model specifically includes:
s110, responding to a first touch operation of a user, and determining a basic graph selected by the user, wherein the basic graph is preset for the user to select.
Illustratively, when drawing, a user draws pictures through a human-computer interaction interface provided by a drawing device based on a fractal Brownian motion model. Taking a tablet personal computer as an example, drawing a picture through a screen of the tablet personal computer, and displaying the picture drawn by a user on a drawing area corresponding to the screen of the tablet personal computer in real time.
Furthermore, before drawing, various different color or monochrome basic graphs can be stored in advance on the tablet personal computer, the basic graphs are placed in the basic graph database, and the basic graphs are used for being selected by a user to draw. The basic graphics can be basic graphics of various styles downloaded via an forgiveness network, or basic graphics obtained by converting a photo into different forms (sketching, painting). Converting the real object of the photo into the painting works with different forms such as sketch, oil painting and the like is a mature technology in the prior art, and is not described herein any more. In addition, the basic graph can also be a picture drawn by the user and stored in the tablet computer. There are many ways to obtain the basic graphics, and the embodiments of the present application are not limited to this example, and are not described herein in detail. And when the user uses the tablet personal computer to draw pictures, basic graphs in the basic graph database can be added and deleted according to actual needs.
And then, when drawing a picture, opening a basic graph database by clicking a corresponding option on a screen of the tablet computer, displaying basic graphs in the basic graph database on the screen in a graph list mode, displaying each graph on the screen in a thumbnail, selecting a required basic graph by a user by clicking the position of a corresponding thumbnail on the screen, defining the clicking operation as a first touch operation, and finishing the selection of the basic graph by the first touch operation. And the selected basic graph is used for drawing on the drawing area subsequently.
It should be noted that, in drawing, a user may need a plurality of different basic graphics, and each time the user selects a basic graphic, drawing operations on a drawing area are performed by the user with the corresponding basic graphic. When the user needs to use other basic graphs, the user can click the basic graph database option on the screen of the tablet computer, open the basic graph database and select the basic graphs again. After the basic graph is reselected, drawing operation on the drawing area is performed by the reselected basic graph.
And S120, responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to the fractal Brownian motion model.
Specifically, after the basic graph is selected, the corresponding position on the drawing area can be clicked to draw, and it can be understood that the position clicked by the corresponding user is the placement position of the basic graph in the drawing area. Defining the click operation as a second touch operation, referring to fig. 2, selecting a piece of tree leaves as a basic graph, and clicking a corresponding position on a drawing area to finally form a branch picture consisting of a plurality of tree leaves, thereby completing drawing of the picture.
In addition, in the drawing process, the growing positions of the leaves are determined according to the clicking positions of the users, and the different sizes of the leaves are determined according to the time length of the users clicking the screen. And the growth direction of the leaves is randomly generated according to the fractal Brownian motion model.
The fractal Brown motion model is an ideal irregular diffusion and fractal random walking basic model, and the curves of the fractal Brown motion model have certain self-similarity locally and integrally, so that the basic graph generated each time has certain self-similarity in the generation direction. As shown in fig. 2, by clicking the screen along the position of the branch of the "branch", the self-similarity basic graph growing in each random direction is finally generated by utilizing the self-similarity of the fractal brownian motion model.
Determining the generation position of the basic graph according to the user click position may refer to a basic graph generation flow, as shown in fig. 3, the basic graph generation flow includes:
s1201, responding to a second touch operation of a user in a drawing area, and determining a first click position corresponding to the second touch operation on the drawing area;
and S1202, generating the basic graph by taking the first point-by-position as a generation starting point of the basic graph.
Specifically, after a user selects a certain basic graph, the user clicks the placement position of the selected basic graph according to the drawing position provided by the screen of the tablet computer, and the position of the basic graph on the drawing area can be selected by using an input device such as a mouse and the like corresponding to other drawing devices such as a computer. When the user clicks a certain position of the drawing area, the tablet computer records the position according to the clicking operation of the user and records the plane coordinate of the position on the drawing area. And defining the position as a first click position, and displaying a corresponding basic graph at the corresponding coordinate of the drawing area according to the plane coordinate of the first click position on the drawing area so as to finish the generation of the basic graph.
More specifically, a basic graph size determination flow chart is provided, and referring to fig. 4, the basic graph size determination flow includes:
s1203, responding to a second touch operation of the user in the drawing area, and determining a click-press duration corresponding to the second touch operation;
s1204, determining the size of the basic graph on the drawing area according to the point-by-point duration.
Specifically, before drawing, the related drawing application program of the tablet computer presets the construction levels of the basic graph corresponding to different points according to the time length, and different construction levels represent different display sizes of the basic graph on the drawing area. According to the embodiment of the application, the size of the corresponding basic graph is determined according to the click-to-press duration of the second touch operation. It can be understood that the longer the time that the user presses the screen by the second touch operation point, the larger the display size of the basic graphic on the drawing area. And when the point-press time length reaches a certain time length threshold value, displaying the basic graph in the maximum size allowed by the drawing area. And then, determining a corresponding construction level according to the point-press time length of the screen by the user in real time, and generating a basic graph with a corresponding size on the drawing area based on the construction level. For example, a user clicks on the screen for 0.5 second to build a 2-layer growth pattern, and clicks on the screen for 1 second to build a 4-layer growth pattern. The higher the build level of the underlying pattern growth pattern, the larger its size is. It should be noted that, when the user clicks the screen to generate the basic graph, the second touch operation corresponding to the user immediately starts to record the click duration of the second touch operation, at this time, a corresponding basic graph is generated at a corresponding position of the drawing area on the screen in real time according to the real-time click duration of the user, the basic graph gradually changes from small to large according to the continuation of the click operation, and when the click operation of the user is finished, the basic graph stops increasing, so that the user can intuitively determine the size of the set basic graph. As shown in FIG. 2, the leaves with different sizes are generated by clicking different time lengths of the screen, so that the composition of the tree branches is more reasonable, and the quality of the finally generated pictorial representation is better.
The basic graph selected by the user is determined in real time by presetting the basic graph for the user to select, and the corresponding basic graph is generated at the corresponding position of the drawing area according to the touch operation of the user in the drawing area. By adopting the technical means, the complicated operation of a user in the drawing process can be simplified, and the drawing of the drawing work can be quickly finished by selecting the basic graph and determining the placement position of the basic graph, so that the drawing learning and operating cost is reduced. In addition, the basic graph of the embodiment of the application randomly selects the generating direction according to the fractal Brownian motion model and is drawn on the drawing area, so that the self-similarity of each basic graph can be guaranteed, and the interestingness of drawing is increased.
Example two:
on the basis of the foregoing embodiment, fig. 5 is a flowchart of another drawing method based on a fractal brownian motion model according to the second embodiment of the present application. Referring to fig. 5, the drawing method based on the fractal brownian motion model provided in this embodiment specifically includes:
s210, responding to a first touch operation of a user, determining a basic graph selected by the user, wherein the basic graph is preset for the user to select;
s220, responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to a fractal Brownian motion model;
s230, responding to a third touch operation of the user, selecting the corresponding basic graph, and adjusting the direction of the corresponding basic graph on the drawing area according to the sliding direction of the third touch operation.
According to the method and the device, after the basic graph is drawn, the direction of each basic graph on the drawing area is adjusted by responding to the relevant touch operation of a user in real time. The touch operation is defined as a third touch operation, and the third touch operation can be triggered by pressing a drawing area corresponding to a basic graph for a long time, so as to distinguish the previous second touch operation. When a user presses a certain basic graph on the drawing area for a long time to reach a set time threshold, the direction adjustment operation of the basic graph is triggered, and at the moment, the direction of the selected basic graph is correspondingly adjusted according to the sliding direction of the third touch operation of the user.
Specifically, a second click position of the third touch operation in the drawing area is determined, and the corresponding basic graph in the set distance range is selected by taking the second click position as a center. When the user adjusts the direction of the corresponding basic graphic, in order to clarify the basic graphic selected by the user, the basic graphic selected by the user needs to be determined according to the coordinates of the second point of the user on the drawing area. By taking the coordinate as a center, and taking the center point of the basic graph on the drawing area as a set distance range of the center, the basic graph which is currently selected by the user for direction adjustment is considered to be the basic graph. The central point of the basic graph can determine a starting point of basic graph generation according to the previous second touch operation as the central point of the basic graph.
And when the direction of the basic graph is adjusted, the tablet personal computer responds to the sliding of the third touch operation in real time to adjust the direction of the corresponding basic graph on the drawing area of the screen in real time according to the sliding direction of the third touch operation, and the process is continuously displayed on the screen in real time, so that a user can determine the final direction of the basic graph according to the feedback of the screen, and the direction adjustment effect of the basic graph is optimized.
Through providing basic figure direction adjustment operation in this application embodiment to the user carries out the direction adjustment to the basic figure that has drawn in real time, ensures that the composition of picture that the picture was drawn is more exquisite, further promotes the interest of drawing.
Example three:
on the basis of the foregoing embodiment, fig. 6 is a flowchart of another drawing method based on a fractal brownian motion model according to a third embodiment of the present application. Referring to fig. 6, the drawing method based on the fractal brownian motion model provided in this embodiment specifically includes:
s310, responding to a first touch operation of a user, determining a basic graph selected by the user, wherein the basic graph is preset for the user to select;
s320, responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to a fractal Brownian motion model;
s330, responding to a fourth touch operation of the user, and deleting the corresponding basic graph from the drawing area.
After the basic graph is drawn, deleting operation corresponding to the generated basic graph on the screen drawing area is carried out by responding to the fourth touch operation of the user. And selecting the corresponding basic graph according to the fourth touch operation of the user, deleting the basic graph, and not displaying the basic graph on the drawing area of the screen. The fourth touch operation may be triggered by double-clicking the drawing area corresponding to the basic graph, so as to distinguish the previous second and third touch operations. When a user double-clicks a certain basic graph on the drawing area, the deleting display operation of the basic graph is triggered, and at the moment, the selected basic graph is correspondingly deleted according to the fourth touch operation of the user.
Similarly, the double-click position of the fourth touch operation in the drawing area is determined, and the corresponding basic graph in the set distance range is selected by taking the double-click position as the center. It should be noted that, when the user deletes the corresponding basic graphic, in order to clarify the basic graphic selected by the user, the basic graphic selected by the user needs to be determined according to the coordinates of the user double-click on the drawing area. And by taking the coordinate as a center and taking the center point of the basic graph on the drawing area as a set distance range of the center, the basic graph which is selected by the user for deletion currently is considered. The central point of the basic graph can determine a starting point of basic graph generation according to the previous second touch operation as the central point of the basic graph.
According to the embodiment of the application, the basic graph is deleted and the display operation is performed, so that a user can delete the drawn basic graph in real time, the composition of the picture is more exquisite, and the interestingness of drawing is further improved.
It should be noted that, in the first, second, third, and fourth touch operations in the first, second, and third embodiments, a plurality of different input modes may be used according to actual needs and different use scenarios, and the specific input mode in the embodiment of the present application is not limited to be fixed, and is not described herein again.
Example four:
on the basis of the foregoing embodiments, fig. 7 is a schematic structural diagram of a drawing apparatus based on a fractal brownian motion model according to a fourth embodiment of the present application. Referring to fig. 7, the drawing apparatus based on the fractal brownian motion model provided in this embodiment specifically includes: a selection module 41 and a generation module 42.
The selection module 41 is configured to determine a basic graphic selected by a user in response to a first touch operation of the user, where the basic graphic is preset for the user to select;
the generating module 42 is configured to generate the basic graph at a corresponding position of the drawing area in response to a second touch operation of the user on the drawing area, where the basic graph randomly selects a generating direction according to the fractal brownian motion model and the fractal brownian motion model.
Specifically, the generating module 42 includes:
the position determining unit is used for responding to a second touch operation of a user in a drawing area, and determining a first click position corresponding to the second touch operation on the drawing area;
a graph generating unit configured to generate the basic graph with the first point-by-position as a generation start point of the basic graph.
Specifically, the generating module 42 further includes:
the duration determining unit is used for responding to a second touch operation of a user in a drawing area and determining the click-press duration corresponding to the second touch operation;
and the size determining unit is used for determining the size of the basic graph on the drawing area according to the point-by-point duration.
Specifically, still include:
and the adjusting module is used for responding to a third touch operation of a user, selecting the corresponding basic graph and adjusting the direction of the corresponding basic graph on the drawing area according to the sliding direction of the third touch operation.
Specifically, still include:
and the deleting module is used for responding to the fourth touch operation of the user and deleting the corresponding basic graph from the drawing area.
The basic graph selected by the user is determined in real time by presetting the basic graph for the user to select, and the corresponding basic graph is generated at the corresponding position of the drawing area according to the touch operation of the user in the drawing area. By adopting the technical means, the complicated operation of a user in the drawing process can be simplified, and the drawing of the drawing work can be quickly finished by selecting the basic graph and determining the placement position of the basic graph, so that the drawing learning and operating cost is reduced. In addition, the basic graph of the embodiment of the application randomly selects the generating direction according to the fractal Brownian motion model and is drawn on the drawing area, so that the self-similarity of each basic graph can be guaranteed, and the interestingness of drawing is increased.
The drawing device based on the fractal brownian motion model provided by the fourth embodiment of the application can be used for executing the drawing method based on the fractal brownian motion model provided by the first, second and third embodiments, and has corresponding functions and beneficial effects.
Example five:
an embodiment of the present application provides an electronic device, and with reference to fig. 8, the electronic device includes: a processor 51, a memory 52, a communication module 53, an input device 54, and an output device 55. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 52 is a computer readable storage medium, and can be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the fractal brownian motion model-based drawing method according to any embodiment of the present application (for example, a selection module and a generation module in a fractal brownian motion model-based drawing device). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 53 is used for data transmission.
The processor 54 executes software programs, instructions and modules stored in the memory so as to execute various functional applications of the device and data processing, namely, implement the drawing method based on the fractal brownian motion model.
The input device 55 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device may include a display device such as a display screen.
The electronic device provided above can be used to execute the drawing method based on the fractal brownian motion model provided in the first, second and third embodiments above, and has corresponding functions and beneficial effects.
Example six:
the embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a drawing method based on a fractal brownian motion model, and the drawing method based on the fractal brownian motion model includes: responding to a first touch operation of a user, and determining a basic graph selected by the user, wherein the basic graph is preset for the user to select; and responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to the fractal Brownian motion model.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the drawing method based on the fractal brownian motion model described above, and may also perform related operations in the drawing method based on the fractal brownian motion model provided in any embodiments of the present application.
The drawing device, the storage medium, and the electronic device based on the fractal brownian motion model provided in the above embodiments may execute the drawing method based on the fractal brownian motion model provided in any embodiments of the present application, and reference may be made to the drawing method based on the fractal brownian motion model provided in any embodiments of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A drawing method based on a fractal Brownian motion model is characterized by comprising the following steps:
responding to a first touch operation of a user, and determining a basic graph selected by the user, wherein the basic graph is preset for the user to select;
and responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to the fractal Brownian motion model.
2. The fractal Brown motion model-based drawing method according to claim 1, wherein the generating the basic graph at the corresponding position of the drawing area in response to a second touch operation of a user at the drawing area comprises:
responding to a second touch operation of a user in a drawing area, and determining a first click position corresponding to the second touch operation on the drawing area;
and generating the basic graph by taking the first point by position as a generation starting point of the basic graph.
3. The fractal Brown motion model-based drawing method according to claim 1, wherein the generating the basic graph at the corresponding position of the drawing area in response to a second touch operation of a user at the drawing area further comprises:
responding to a second touch operation of a user in a drawing area, and determining the click-press duration corresponding to the second touch operation;
and determining the size of the basic graph on the drawing area according to the point-by-point duration.
4. The drawing method based on the fractal Brown motion model according to claim 3, wherein the determining the size of the basic graph on the drawing area according to the point-by-time comprises:
setting building levels corresponding to different point-by-point durations of the basic graph in advance, determining the corresponding building levels according to the point-by-point durations in real time, and generating the basic graph with the corresponding size on the drawing area based on the building levels.
5. The fractal Brown motion model-based drawing method according to claim 1, after the generating the base graph at the corresponding position of the drawing area in response to a second touch operation of a user at the drawing area, further comprising:
and responding to a third touch operation of a user, selecting the corresponding basic graph, and adjusting the direction of the corresponding basic graph on the drawing area according to the sliding direction of the third touch operation.
6. The drawing method based on the fractal Brownian motion model according to claim 5, wherein the selecting the corresponding basic graph in response to a third touch operation of a user comprises:
and determining a second point-pressing position of the third touch operation in the drawing area, and selecting the corresponding basic graph within a set distance range by taking the second point-pressing position as a center.
7. The fractal Brown motion model-based drawing method according to claim 1, after the generating the base graph at the corresponding position of the drawing area in response to a second touch operation of a user at the drawing area, further comprising:
and responding to a fourth touch operation of the user, and deleting the corresponding basic graph from the drawing area.
8. A drawing device based on a fractal Brownian motion model is characterized by comprising:
the selection module is used for responding to a first touch operation of a user and determining a basic graph selected by the user, wherein the basic graph is preset for the user to select;
and the generating module is used for responding to a second touch operation of a user in a drawing area, generating the basic graph at a corresponding position of the drawing area, and randomly selecting a generating direction according to the fractal Brownian motion model and the fractal Brownian motion model by the basic graph.
9. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a fractal brownian motion model based drawing method as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the fractal brownian motion model based drawing method of any one of claims 1 to 7 when executed by a computer processor.
CN202010184772.0A 2020-03-17 2020-03-17 Drawing method and device based on fractal Brown motion model Active CN111243378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010184772.0A CN111243378B (en) 2020-03-17 2020-03-17 Drawing method and device based on fractal Brown motion model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010184772.0A CN111243378B (en) 2020-03-17 2020-03-17 Drawing method and device based on fractal Brown motion model

Publications (2)

Publication Number Publication Date
CN111243378A true CN111243378A (en) 2020-06-05
CN111243378B CN111243378B (en) 2022-02-22

Family

ID=70864881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010184772.0A Active CN111243378B (en) 2020-03-17 2020-03-17 Drawing method and device based on fractal Brown motion model

Country Status (1)

Country Link
CN (1) CN111243378B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506372A (en) * 2020-11-30 2021-03-16 广州朗国电子科技有限公司 Graffiti spray drawing method and device based on touch screen and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0667595A1 (en) * 1994-02-04 1995-08-16 Thomson Broadcast Method for generating textured images and special video effects and apparatus for the implementation of such a method
US20130120434A1 (en) * 2009-08-18 2013-05-16 Nayoung Kim Methods and Apparatus for Image Editing Using Multitouch Gestures
CN103218846A (en) * 2013-04-16 2013-07-24 西安理工大学 Ink painting simulation method of three-dimensional tree model
CN107067359A (en) * 2016-06-08 2017-08-18 电子科技大学 Contourlet area image sharing methods based on Brownian movement and DNA encoding
CN107273033A (en) * 2017-06-28 2017-10-20 王汝平 Dress designing method, apparatus and system
CN108089761A (en) * 2018-01-02 2018-05-29 京东方科技集团股份有限公司 Electronic drawing board, remote teaching drawing board, drawing emulation mode and device
CN108376416A (en) * 2018-01-16 2018-08-07 天津大学 A kind of image generating method and device
CN108741673A (en) * 2018-06-22 2018-11-06 广安职业技术学院 Art Design drawing tables
CN109725792A (en) * 2019-02-25 2019-05-07 广东智媒云图科技股份有限公司 A kind of drawing method based on question and answer interaction
CN110097612A (en) * 2019-04-02 2019-08-06 北京大麦地信息技术有限公司 A kind of method and device of online graphing element
US20190272090A1 (en) * 2012-07-30 2019-09-05 Samsung Electronics Co., Ltd. Multi-touch based drawing input method and apparatus
CN110795177A (en) * 2018-08-03 2020-02-14 浙江宇视科技有限公司 Graph drawing method and device
US10565743B1 (en) * 2017-11-21 2020-02-18 Snap Inc. Synthesizing cloud stickers

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0667595A1 (en) * 1994-02-04 1995-08-16 Thomson Broadcast Method for generating textured images and special video effects and apparatus for the implementation of such a method
US20130120434A1 (en) * 2009-08-18 2013-05-16 Nayoung Kim Methods and Apparatus for Image Editing Using Multitouch Gestures
US20190272090A1 (en) * 2012-07-30 2019-09-05 Samsung Electronics Co., Ltd. Multi-touch based drawing input method and apparatus
CN103218846A (en) * 2013-04-16 2013-07-24 西安理工大学 Ink painting simulation method of three-dimensional tree model
CN107067359A (en) * 2016-06-08 2017-08-18 电子科技大学 Contourlet area image sharing methods based on Brownian movement and DNA encoding
CN107273033A (en) * 2017-06-28 2017-10-20 王汝平 Dress designing method, apparatus and system
US10565743B1 (en) * 2017-11-21 2020-02-18 Snap Inc. Synthesizing cloud stickers
CN108089761A (en) * 2018-01-02 2018-05-29 京东方科技集团股份有限公司 Electronic drawing board, remote teaching drawing board, drawing emulation mode and device
CN108376416A (en) * 2018-01-16 2018-08-07 天津大学 A kind of image generating method and device
CN108741673A (en) * 2018-06-22 2018-11-06 广安职业技术学院 Art Design drawing tables
CN110795177A (en) * 2018-08-03 2020-02-14 浙江宇视科技有限公司 Graph drawing method and device
CN109725792A (en) * 2019-02-25 2019-05-07 广东智媒云图科技股份有限公司 A kind of drawing method based on question and answer interaction
CN110097612A (en) * 2019-04-02 2019-08-06 北京大麦地信息技术有限公司 A kind of method and device of online graphing element

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
常天翔: "分形几何在计算机图形学中的应用", 《计算机光盘软件与应用》 *
范乃梅 等: "基于分形的三维地形的绘制", 《郑州轻工业学院学报(自然科学版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506372A (en) * 2020-11-30 2021-03-16 广州朗国电子科技有限公司 Graffiti spray drawing method and device based on touch screen and storage medium

Also Published As

Publication number Publication date
CN111243378B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
US11741644B2 (en) Vector graphics based live sketching metods and systems
DE112013002409T5 (en) Apparatus, method and graphical user interface for displaying additional information in response to a user contact
CN101382870A (en) Electronic drafting method
CA3143033C (en) Data serialization extrusion for converting two-dimensional images to three-dimensional geometry
US20130120237A1 (en) Systems and Methods for Synthesizing High Fidelity Stroke Data for Lower Dimension Input Strokes
CN111243378B (en) Drawing method and device based on fractal Brown motion model
CN108958611B (en) Information editing method and device
US9715336B2 (en) Digital art systems and methods
EP3103081B1 (en) Collaborative group video production system
CN112711374A (en) Multi-terminal cooperation method, device and equipment based on conference whiteboard application
JP2013232123A (en) Electronic conference system, terminal, and file providing server
US11935163B1 (en) Stroke tapestry methods and systems
CN112309449A (en) Audio recording method and device
CN109725792B (en) Question-answer interaction-based drawing method
KR102159326B1 (en) System and Device for learning creator's style
CN105320506B (en) A kind of method and device obtaining image
CN112181268B (en) Answering method, device, terminal and system based on intelligent pen
CN109925715A (en) A kind of virtual waters generation method, device and terminal
JP2015045945A (en) Information processing device, program, and information processing system
KR20210078467A (en) Method for studying
CN112188260A (en) Video sharing method, electronic device and readable storage medium
JPH1166351A (en) Method and device for controlling object operation inside three-dimensional virtual space and recording medium recording object operation control program
WO2024065097A1 (en) Blackboard-writing content display method, electronic device, and storage medium
US20230410391A1 (en) Methods and systems relating to digital mark opacity, blending and canvas texture
CN116975337A (en) Image searching method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant