QBasic Exam tomorrow...can someone help me with a command ASAP?

Time2Kill

Golden Member
Nov 20, 1999
1,816
4
81
www.brooksidestorage.com
I pretty much know everything, except I cant remember how to fill something in while in graphics mode, be it a cirle, triangle, or some other weird shape.

All I can remember is, you set the fill color, and the border color and it would stop filling once it reached the border. Does anyone know what command that is?

Thanx
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
I think the PAINT command is what you want to use here. It's been a long time since I've used QuickBasic (moved on to Visual Basic, and now I'm learning C++), but I think the syntax is something like this:

PAINT (x,y), onecolor, twocolor

You'll need to look up in the QB helpfile to see which color goes where, though, cause I can't remember.
HTH