12-09-2005, 07:02 AM
12-10-2005, 04:50 AM
Use FloodFill..
12-10-2005, 11:43 AM
OK, if you really can't get it to work, post what you have and I'll fix it.
12-10-2005, 09:38 PM
It won't lwet me post my code for some reason so I am not sure what to do.
But I'll post what i need still anyway, it doesn't need the code
THE LIST
now my problems are the following:
-> how to use the BSAVE and BLOAD
-> if there would be a way to save the picture you make as a file so this program could be a stand alone and then how to load it in my game which is also screen 13,,,1
-> a sub that allows user to create a line of any color
-> a sub that allows the user to create a circle of any color (unfilled or filled)
Any help is much appreciated.
But I'll post what i need still anyway, it doesn't need the code
THE LIST
now my problems are the following:
-> how to use the BSAVE and BLOAD
-> if there would be a way to save the picture you make as a file so this program could be a stand alone and then how to load it in my game which is also screen 13,,,1
-> a sub that allows user to create a line of any color
-> a sub that allows the user to create a circle of any color (unfilled or filled)
Any help is much appreciated.
12-10-2005, 10:40 PM
Ok it's getting complicated now.... you've seriously considered using Paint right?
These are related. You can use BLOAD and BSAVE like so: (READ THE HELP FILE!!!)
http://www.qbasicnews.com/qboho/qckadvr.bloadx.shtml
http://www.qbasicnews.com/qboho/qckadvr.bsavex.shtml
-> a sub that allows user to create a line of any color
-> a sub that allows the user to create a circle of any color (unfilled or filled)
Use LINE and CIRCLE commands... this is going to get so complicated.. you need to know how to use subs/functions with parameters first... and then you are barely into knowing how to do user input..... can't help you here, it'll be a mess...
Quote:-> how to use the BSAVE and BLOAD
-> if there would be a way to save the picture you make as a file so this program could be a stand alone and then how to load it in my game which is also screen 13,,,1
These are related. You can use BLOAD and BSAVE like so: (READ THE HELP FILE!!!)
http://www.qbasicnews.com/qboho/qckadvr.bloadx.shtml
http://www.qbasicnews.com/qboho/qckadvr.bsavex.shtml
-> a sub that allows user to create a line of any color
-> a sub that allows the user to create a circle of any color (unfilled or filled)
Use LINE and CIRCLE commands... this is going to get so complicated.. you need to know how to use subs/functions with parameters first... and then you are barely into knowing how to do user input..... can't help you here, it'll be a mess...
12-10-2005, 11:08 PM
Well I know user input ok, I got the circle to work, execpt certain sizes don't fill all of the pixels. Also, I need a way to prevent the circle from being drawn outside the 16x16 coloring box parameters. Also, who would I BSAVE a part of the screen from (2,2)-(17,17)??? Also I can't get the BLOAD to work either.
12-11-2005, 01:00 AM
Hang on
FloodFill
FloodFill
in the sub flood fill
That'd run an unlimited number of floodfills wouldn't it?
FloodFill
FloodFill
in the sub flood fill
That'd run an unlimited number of floodfills wouldn't it?
12-11-2005, 02:31 AM
It's called recursion. Think of it as a 'controlled' infinite looping.
12-11-2005, 02:47 AM
Oh ya that'd be a problem. I wrote a circle routine once that made perfectly filled circles with LINE statements.. as did a few others.
"BSAVE a part of the screen from (2,2)-(17,17)??? Also I can't get the BLOAD to work either."
Did you look at the examples?
"BSAVE a part of the screen from (2,2)-(17,17)??? Also I can't get the BLOAD to work either."
Did you look at the examples?
12-11-2005, 05:03 AM
Quote:Hang on
FloodFill
FloodFill
in the sub flood fill
That'd run an unlimited number of floodfills wouldn't it?
Just try the code. :lol: