easy PAINT question!!
- Captainlazy
- Newbie
- Posts: 8
- Joined: Tue Oct 11, 2005 12:39 pm
- Location: UK
easy PAINT question!!
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!!
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!!
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.
If you need music composed in MP3, WAV, or MIDI format, please contact me via email.
Xerol's Music - Updated Regularly!
Xerol's Music - Updated Regularly!
- Captainlazy
- Newbie
- Posts: 8
- Joined: Tue Oct 11, 2005 12:39 pm
- Location: UK