home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd511
/
colour_to_grey.amos
/
colour_to_grey.amosSourceCode
Wrap
AMOS Source Code
|
1978-02-22
|
1KB
|
35 lines
'This Proc will turn your current picture in to a black and white
'picture. It will work very well wih high detailed pictures
'but some pictures will not look as good. One Example is
'the Amos Picture on the amos_Data disk. This picture will
'look terrible as most of the colours are to dark.
'
' After testing 24 Pictures the average time to convert was 21 seconds.
' The biggest time was 38 seconds and the smallest 1 second.
'
Procedure C0LOUR_TO_GREY
' Proc written by Brett George
C=0 : Z=0
Repeat
Repeat
If Colour(Z)=$0 Then C=True
If Colour(Z)=$111 Then C=True
If Colour(Z)=$222 Then C=True
If Colour(Z)=$333 Then C=True
If Colour(Z)=$444 Then C=True
If Colour(Z)=$555 Then C=True
If Colour(Z)=$666 Then C=True
If Colour(Z)=$777 Then C=True
If Colour(Z)=$888 Then C=True
If Colour(Z)=$999 Then C=True
If Colour(Z)=$AAA Then C=True
If Colour(Z)=$BBB Then C=True
If Colour(Z)=$CCC Then C=True
If Colour(Z)=$DDD Then C=True
If Colour(Z)=$EEE Then C=True
If Colour(Z)=$FFF Then C=True
If C=0 Then Colour Z,Colour(Z)-1
Until C
C=0 : Inc Z
Until Z=Screen Colour
End Proc