home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-10-03 | 902 b | 58 lines |
- ' ********************
- ' *** COLOUR 2 B/W ***
- ' ********************
-
- ' *** This Program Converts A 32 Colour Picture Into A Black & White One.
-
- ' *** Load IFF Picture.
-
- F$=Fsel$("","","Load IFF Picture.")
-
- If F$<>""
- Load Iff F$,0
- Else
- Direct
- End If
-
- ' *** Convert Picture.
-
- For C=0 To 15
- If Colour(C)<>C*$111
- For Y=0 To Screen Height
- For X=0 To Screen Width
- C=Colour(Point(X,Y))
- Plot X,Y,C/$111
- Next
- Next
- For F=0 To 15
- Colour F,F*$111
- Next
- End If
- Next
-
- ' *** Place Picture On New Screen.
-
- Screen Open 1,Screen Width,Screen Height,16,Screen Mode
- Curs Off
- Flash Off
- Cls 0
- Get Palette 0
- Screen Copy 0 To 1
-
- ' *** Close Old Screen.
-
- Screen Close 0
-
- ' *** Save Converted Picture.
-
- F$=Fsel$("","","Save IFF Picture")
-
- If F$<>""
- Save Iff F$,0
- End If
-
- ' *** Close Screen & Quit.
-
- Screen Close 1
-
- Direct