Page 5 - Learn to Program - Basic-256
P. 5
Continuing and Exiting Loops.........................................................98
Fast Graphics:..............................................................................99
Exercises:...................................................................................104
Chapter 9: Custom Graphics – Creating Your Own
Shapes........................................................................106
Fancy Text for Graphics Output:..................................................106
Resizing the Graphics Output Area:..............................................108
Creating a Custom Polygon:.........................................................110
Stamping a Polygon:...................................................................112
Sixteen Million Different Colors.....................................................117
Exercises:...................................................................................125
Chapter 10: Functions and Subroutines – Reusing Code.
...................................................................................128
Functions:..................................................................................128
Subroutines:...............................................................................133
Using the Same Code in Multiple Programs:..................................138
Labels, Goto, and Gosub:............................................................141
Exercises:...................................................................................147
Chapter 11: Mouse Control – Moving Things Around.
...................................................................................150
Tracking Mode:...........................................................................150
Clicking Mode:............................................................................153
Exercises:...................................................................................159
Chapter 12: Keyboard Control – Using the Keyboard to
Do Things...................................................................162
Getting the Last Key Press:..........................................................162
Getting the Currently Pressed Keys..............................................168
Exercises:...................................................................................174
Chapter 13: Images, WAVs, and Sprites....................177
Saving Images to a File:..............................................................177
Images From a File:....................................................................178

