home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-26 | 1.0 KB | 45 lines |
- ' *************************************************************
- '
- ' Line Wipe
- '
- ' - ** By Paul Nordovics ** -
- '
- ' If you use this in your own programs I won't be offended if
- ' you mention me in your creditz !!!
- ' *************************************************************
- '
- ' line_wipe0[x1,y1,x2,y2,speed,_ink]
- '
- ' x1,y1 = top-left corner of area to be cleared
- ' x2,y2 = bottom-right corner of area to be cleared
- ' speed = speed of fx
- ' _ink = ink colour of line
- '
- ' *************************************************************
- '
- ' *************
- ' set up screen
- ' *************
- Hide
- Unpack 1 To 0
- '
- Wait 20
- LINE_WIPE0[32,33,290,189,1,0]
- '
- End
- '
- Procedure LINE_WIPE0[X1,Y1,X2,Y2,SPEED,_INK]
- Ink _INK
- For K=X1 To X2 Step 2
- If SPEED>0 Then Wait SPEED
- Draw K,Y1 To K,Y2
- Next K
- For K=Y1 To Y2 Step 2
- If SPEED>0 Then Wait SPEED
- Draw X1,K To X2,K
- Next K
- For K=X1+1 To X2 Step 2
- If SPEED>0 Then Wait SPEED
- Draw K,Y1 To K,Y2
- Next K
- End Proc