This program takes as arguments the size of the ellipse (2 numbers - X size, Y size) in the range from 0 to 200
Once you run the program and an ellipse is drawn, you can use the arrows to enlarge and reduce the size of the ellipse:
⬆️ - ellipse increases in size on the Y-axis
⬇️ - ellipse shrinks out on Y-axis
➡️ - ellipse increases in size on X-axis
⬅️ - ellipse shrinks on X-axis
Moreover, you can change elipse color using:
1 - 🟣
2 - 🔵
3 - 🟢
4 - 🟡
5 - 🟠
6 - 🔴
7 - ⚪
Also, when you click CTRL + C, elipse switch mode to circle animation! 🌟
To return to elipse mode, click CTRL + E
To close the program, click ESC
The program accepts 2 numbers from 0 to 200 (for X size and Y size). NOTE: the arguments are given when starting the program
Input: elipse 20 200
Output: cute purple elipse
Input: elipse 20 350
Output: bad input data
Input: elipse 20
Output: bad input data
for Linux OS
- Install dosbox:
# For Debian/Ubuntu-based systems: sudo apt install dosbox # For Fedora/RHEL/CentOS systems: sudo dnf install dosbox # For Arch-based systems: sudo pacman -S dosbox
- Run dosbox
dosbox
- Mount C in ellipse-animation-asm directory:
Z:\> mount c <path-to-directory> Z:\> c:
- Do this:
or
C:\> masm elipse; C:\> link elipse; C:\> elipse 200 120
C:\> ml elipse.asm C:\> elipse 200 120
- Now you admire and play with the elipse 🌝