Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 995 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 995 Bytes

Wheels-Animation

Using assembly language and opengl, this program will animate a rotating wheel divided into three sections.

A makefile is added to compile the files using make wheels will compile.
Usage: <executable> -sp <septNumber> -cl <septNumber> -sz <septNumber>

The program will error-check the command line and convert the septenary number into an integer. The first section will be the speed of the animation, the second section will be the color, and the third will be the size of the window that opens for the animation.

Note the following max and min values for septenary
SPEED MIN = 1
SPEED MAX = 50, 101(7) = 50
COLOR MIN = 0
COLOR MAX = 0xFFFFFF, 0xFFFFFF = 262414110(7)
SIZE MIN = 100, 202(7) = 100
SIZE MAX = 2000, 5555(7) = 2000

Example Usage: ./wheels -sp 021 -cl 164623 -sz 1000
Where the speed is converted to 15, the color would be 0x008080 which would be teal, and the size is 343