Mail Archives: djgpp/1997/02/14/20:23:11
TBD (root AT cclub DOT sorostm DOT to) wrote:
: okay .... another problem ... how do i put random pixels
: in modex modes all over the screen, if i use
: int x,y;
: for(x=0;x<SCREEN_W,x++)
: for(y=0;y<SCREEN_H,y++)
: putpixel(x,y,(random() & 16));
: it prints like nonsense ...
Well, that's what random stuff is :) Try replacing the 16 with 0xff... that
might be what you were looking for.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -