[net.micro.apple] APPLESOFT

rob (03/09/83)

I came across an embarrassing situation today while trying
to teach some people about the APPLESOFT hi-res graphic 
commands.  I had entered the following program:

 10	HGR
 20	HCOLOR=7
 30	HPLOT 0,0
 40	HCOLOR = RND(1) * 8
 50	HPLOT TO RND(1) * 279, RND(1) * 191
 60	GOTO 40

The program is supposed to draw several connected line segments,
each line one of the eight different possible colours.  Much to
my surprise, APPLESOFT refused to change the HCOLOR, and drew
all of the lines in the same colour (white).  Does anyone know
why this happened (Is there an error in my program, or does
APPLESOFT do this on purpose just to annoy people)?

		Thanks,
		  -Ian
		  ...!uw-beaver!ubc-vision!alberta!rob