home *** CD-ROM | disk | FTP | other *** search
QuickBASIC Tokenized Source | 1989-12-04 | 1.1 KB | 15 lines |
- APage
- VPage
- Angle
- The macro string to draw the cube and paint its sides:
- BR30 BU25 C1 R54 U45 L54 D45 BE20 P1,1 G20 C2 G20"m
- R54 E20 L54 BD5 P2,2 U5 C4 G20 U45 E20 D45 BL5 P4,4"
- Initialize values for the active and visual
- pages, as well as the angle of rotation.u
- Draw to the active page while showing
- the visual page:v
- Rotate the cube "Angle%" degrees:
- Angle% is some multiple of 15 degrees:
- Switch the active and visual pages:
- A key press ends the program.
-