A C# program that produces a graphical output. Drawing a curve using a given math equations of that curve. Drawing a function that graphs a fascinating shape such as a flower, figure-eights, hearts, snow flakes, spirals, diamonds, and other amazing patterns.
Author: Randy Le
Author's Email: [email protected]
Course: CPSC223N
Date of Creation: 11/27/2017
Language: C# program
Distribution: Xubuntu
Software: Monodevelop
- curvedrawing_3main.cs
- curvedrawing_3frame.cs
- curvedrawing_3logic.cs
To run the program on linux please run the follow in the terminal to create the curvedrawing_3logic.dll:
$ mcs -target:library curvedrawing_3logic.cs -r:System.Drawing.dll -out:curvedrawing_3logic.dll
After, run the following in the terminal to create the curvedrawing_3frame.dll:
$ mcs -target:library curvedrawing_3frame.cs -r:System.Windows.Forms.dll -r:System.Drawing.dll -r:curvedrawing_3logic.dll -
Also, run the following to create an .exe file:
$ mcs curvedrawing_3main.cs -r:System.Windows.Forms.dll -r:System.Drawing.dll -r:curvedrawing_3frame.dll -r:curvedrawing_3logic.dll -out:curvedrawing3.exe
Finally, execute the following:
$ ./curvedrawing3.exe
or run the run.sh file with the command
$ sh run.sh
- The C# coordinate system and Math coordinate system.
- Conversion between C# coordinates and Math coordinates.
- The scale factor that relates the two types of coordinates.
- Equations in polar coordinates; equations in rectangular coordinates.
- How to add consant to the current image without destroying the existing content.
The program will have a UI that display a panel structure of buttons (Start, Pause/Resume/ Exit). It also displays the X and Y coordinates values showned in mathematical coordiantes of the point of the ball pen as it draws the curve.