Page 1 of 1

easy PAINT question!!

Posted: Sat Oct 15, 2005 5:05 pm
by Captainlazy
Im trying to use the PAINT function to fill a box on screen.

I know that this code works fine:

SCREEN 12
LINE (100, 100)-(150, 150), 4, B
PAINT (101, 101), 9, 4

BUT... My box is slightly different. Using the LINE:

LINE (616, 194)-(34, 456), 4, B

what does my PAINT code need to be in order to fill the box?? At the moment, all that is happening is that i fill outside the box! I have tried loads and loads of PAINT combinations but my usual trial and error has failed me! please help!!

Posted: Sat Oct 15, 2005 5:36 pm
by Kevin
Try BF instead of B on your line statement...

Posted: Sat Oct 15, 2005 5:43 pm
by Xerol
The BF flag produces a filled box. If you want to still use the normal PAINT statement (which is slower, I think), you need to make sure the point you are painting is inside the box. (101, 101) would be above the box in this case, so it won't work.

Posted: Sat Oct 15, 2005 5:46 pm
by {Nathan}
Remember my old sig? The "If only I would have gotton here earlyier" sig?

Well... if only I would have gotton here earlier.

Posted: Sat Oct 15, 2005 7:15 pm
by Captainlazy
wikid - thanks guys.
This forum is damn good!

Posted: Sun Oct 16, 2005 2:57 pm
by {Nathan}
hell yeah!

Posted: Mon Oct 17, 2005 3:13 am
by m2j
wikid
fork off and never come back.


:wink:


matt

Posted: Mon Oct 17, 2005 6:31 am
by Z!re
m2j wrote:
wikid
fork off and never come back.


:wink:


matt
Uhm?

Posted: Mon Oct 17, 2005 8:48 am
by m2j
Obviosly that fell flat on it's face... It was meant to be a joke... I know better then to try one like that in future (Mod - feel free to delete above above post...)

matt :oops:

Posted: Mon Oct 17, 2005 3:08 pm
by {Nathan}
hes new here, be nice... 0_o