<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 25 Oct 2015 02:00:21 +0000
From   : jgh@... (J.G.Harston)
Subject: Reading current colours

J.G.Harston wrote:
> I'd got as far as:
>   colour%   =FNosword(160,whatever)
>   maxColour%=FNosword(160,96)
>   IF maxColour%=3:colour%=colour% DIV 8
>   colour%=colour% AND maxColour%

Of course, as 2-colour modes returns &00 and &FF, the IF can be removed 
as
   colour%   =FNosword(160,whatever)
   maxColour%=FNosword(160,96)
   colour%=(colour% DIV 8) AND maxColour%
would always work.

-- 
J.G.Harston - jgh@...      - mdfs.net/jgh
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>