Home | Lehre | Videos | Texte | Vorträge | Software | Person | Impressum, Datenschutzerklärung | Blog
Assignment 1: Event-based Programming
Create a basic drawing program. From the menu, the user can choose tools
to:
-
move objects,
-
draw a single line,
-
create a rectangle,
-
create an ellipse.
The object creation tools work as usual, that is, the first mouse click
determines the starting point of the line or one corner of a rectangle
or one corner of the rectangle containing the ellipse. As the user drags
the mouse, he or she adjusts the placement of the end point of the line
or the far corner of the rectangle.
Ideas for extensions:
-
Save the result as a SVG file.
-
Save the result as an EPS file.
-
Use clicks with the right mouse button to change color patterns.
-
Allow editing the size of the three primitives.
-
Let the user create and edit text.