3 hours looking at some #%$! bug... < help :) >

BlitzPlus Forums/BlitzPlus Programming/3 hours looking at some #%$! bug... < help :) >

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I guess you are hoping that createpattern(4,1,2,3,3) will draw this pattern of grays:

1 2
3 3

But the code which sets colors is actually doing this:

ps2 ps3
ps4 ps4

which translates to

2 3
3 3

Anyway, I think the drawing code should be something like
	SetBuffer ImageBuffer(imgcheese)

	For y=0 To 7
		For x=0 To 7
			
			c = 80*pat(x,y)
			Color c,c,c
			Rect (offset*16)+x*2,y*2,2,2,True

		Next 
	Next