Idea
Idea
Art has been an important part of the human culture since the beginning. Therefore, the goal of this project to make a simple drawing program.
At first, the initial variables that are necessary to make a working algorithm have been declared (see Initial Setup section).
At first, the initial variables that are necessary to make a working algorithm have been declared (see Initial Setup section).
The drawing tools using the Wolfram Event System created in the following section (in particular the ColorWheelSelector resource function used).
Initial Setup
Initial Setup
How to use the GUI
How to use the GUI
First, we need to select the desired drawing tool.1. Is a general drawing tool.2.Draws a rectangle in the desired place.3.Draws a disk in the desired place.4.Draws a triangle using the 3 preselected points.5.Draws a straight line in the desired place.Next, we select the line thickness (note that this option has no effect in tools 2, 3, and 4). After that, we can adjust the rectangle’s rotation (this feature is only available with tool 2). Then, choose your preferred drawing color from the left and background color from the right. Finally, clicking the “Clear” button will remove the current drawing.
Please use the following function to run the GUI.
In[]:=
ui[]
Out[]=
Conclusion
Conclusion
Finally, I was able to create a drawing program, which can be used by artists, who have a unique drawing style.
Acknowledgement
Acknowledgement
I want to thank our mentor Mher Mkrtchyan for his immeasurable help and support throughout this project.
Affiliation
Affiliation
In December 2020 the Wolfram Lab opened at RAU (Russian-Armenian University, Yerevan, Armenia). The Wolfram Lab was created on the basis of the RAU research laboratory for mathematical modeling of quantum systems. This laboratory became the first laboratory in the world created by Wolfram Research on a university basis. Currently, the laboratory teaches courses for undergraduate students (major in programming and physics) and high school students (major in physical and mathematical sciences). Mher Mkrtchyan (mherm@wolfram.com) (Group: Sound & Vision, Manager: Shadi Ashnai) is responsible for the Wolfram Lab at RAU.
The project was completed by an 11th grade student.
The project was completed by an 11th grade student.
CITE THIS NOTEBOOK
CITE THIS NOTEBOOK
Creating a drawing program using EventHandler
by Vladimir Shirkhanyan
Wolfram Community, STAFF PICKS, November 1, 2024
https://community.wolfram.com/groups/-/m/t/3312648
by Vladimir Shirkhanyan
Wolfram Community, STAFF PICKS, November 1, 2024
https://community.wolfram.com/groups/-/m/t/3312648
