Help Contents / Graphics / Bitmaps / BitFill

BitFill abitmap x y

Command to flood fill an area inside a Bitmap with FloodColor, using the current pen color to determine the rim. The advantage over FILL is its speed, because aUCBLogo uses OpenGL and  I have not found out how to get a pointer  to the memory buffer on the graphics card  containing the current OpenGL context. If anyone knows how to do this please tell me. 

Example: 

	to bitfilltest 
		clearScreen 
		disableLineSmooth 
		box 
		PenUp setXY -100 -100 
		bmp=BitCopy 200 200 
		BitFill bmp (BitMaxX bmp)*0.6 (BitMaxY bmp)*0.6 
		Home 
		setXY -100 -100 
		BitPaste bmp 
		Home 
		PenDown 
	end 

It should draw a filled square. 


previous: BitMaxY
