home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-10-03 | 665 b | 46 lines |
- ' ********************
- ' *** NEGATIVE PIC ***
- ' ********************
-
- ' *** This Routine Re-Arranges The Colours In The Palette So That They
-
- ' Are All Negatives Of Themselves.
-
- ' *** Load Picture.
-
- F$=Fsel$("","","Load IFF Picture")
- If F$<>""
- Load Iff F$,0
- Else
- Direct
- End If
-
- ' *** Wait.
-
- Wait 50
-
- ' *** Make Colours Negative.
-
- For LOP=0 To Screen Colour-1
-
- ' *** Get Colour Values - Red, Green & Blue.
-
- R=Colour(LOP)/256
- G=Colour(LOP)/16 mod 16
- B=Colour(LOP) mod 16
-
- ' *** Make Negative Colour.
-
- R=15-R
- G=15-G
- B=15-B
-
- ' *** Change Colour.
-
- Colour LOP,R*256+G*16+B
-
- Next LOP
-
- ' Quit.
-
- Direct