home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
576-600
/
apd591
/
proc
/
graphics
/
tbox.amos
/
tbox.amosSourceCode
Wrap
AMOS Source Code
|
1994-02-02
|
883b
|
30 lines
Screen Open 0,320,200,16,0 : Curs Off : Flash Off : Cls 1
Palette $666,0,$222,$333,$444,$555,$666,$777,$888,$999,$AAA,$BBB,$CCC,$DDD,$EEE,$FFF
TBOX[10,10,69,69,False]
Ink 10 : Paint 50,50
TBOX[110,10,169,69,True]
Ink 10 : Paint 150,50
'*********************************************************
'
'TBOX[X1,Y1,X2,Y2,IN]
'
'NOTE: This procedure assumes that for an N colour screen:
'
' - Colour 0 is black, or very dark
' - Colour N-1 is white, or very pale
'
'TBOX draws a box from co-ordinates X1,Y1 to X2,Y2.
'
'If IN = True, the top & left edges are dark(colour 0), and the bottom &
'right edges are pale (Colour N-1). Otherwise the opposite is true.
'
'TBOX is useful for: Drawing 3D effect control panels
'
Procedure TBOX[X1,Y1,X2,Y2,IN]
A=Screen Colour-1
Ink A+IN*A
Polyline X1,Y2-1 To X1,Y1 To X2,Y1
Ink -IN*A
Polyline X1,Y2 To X2,Y2 To X2,Y1+1
End Proc