Toolbox
Toolbox
The toolbox contains many libraries and we are only describing a few that will be useful for our programming purpose.
QuickDraw library is the standard graphics library. It has many commands that can help you draw many type of shapes. You can also change the color palette for each line and the color within the palette to use many colors.
Events library contains commands for you to read mouse and keyboard status.
MiscTool Library contains some miscellaneous commands like beeping the speaker or get the system tick count (number of 60th-second intervals since the system started).
QuickDraw
Clear Screen
Hide Mouse Pointer
Write Text
Set Text Color
Set Pen Color
Set Pen Size
Set Default Pen
Move Pen
Draw Line
Set Rectangle Size
Draw Rectangle
Draw Round Rectangle
(oval edge)
Draw Oval
Draw Arc
Create Polygon
Check Point In Rectangle
Get Random Number
Set Random Seed
Set Palette (320 mode)
Get Color In Palette
Set Color In Palatte
Events
Mouse Button Down
Mouse Button Still Down
Get Mouse Location
Get Next Event
MiscTool
System Beep
Get System Tick
clearScreen(color)
hideCursor
drawString(text)
setForeColor(color)
setBackColor(color)
setSolidPenPat(color)
setSolidBackPat(color)
setPenSize(width, height)
penNormal
move(x, y)
moveTo(x, y)
line(x, y)
lineTo(x, y)
setRect(rect, x1, y1, x2, y2)
frameRect(rect)
paintRect(rect)
eraseRect(rect)
frameRRect(rect, oval width, oval height)
paintRRect(rect, oval width, oval height)
eraseRRect(rect, oval width, oval height)
frameOval(rect)
paintOval(rect)
eraseOval(rect)
frameArc(rect, start angle, arc angle)
paintArc(rect, start angle, arc angle)
eraseArc(rect, start angle, arc angle)
openPoly
closePoly
ptInRect(point, rect)
random
setRandSeed(seed)
setSCB(line, palette)
getColorEntry(palette, color)
setColorEntry(palette, color, color value)
button(0)
stillDown(0)
getMouse(point)
getNextEvent(mask, event)
sysBeep
getTick
320 Mode
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Color Table
Black
Dark Grey
Brown
Purple
Blue
Dark Green
Orange
Red
Flesh
Yellow
Green
Light Blue
Lilac
Periwinkle Blue
Light Grey
White