Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
paint program, need help
#41
well i works in fb, but i can't figure out how to implement this into my program, the code has just been updated after this post was posted
Reply
#42
Use FloodFill..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#43
OK, if you really can't get it to work, post what you have and I'll fix it.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#44
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.
Reply
#45
Ok it's getting complicated now.... you've seriously considered using Paint right?

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...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#46
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.
Reply
#47
Hang on

FloodFill
FloodFill

in the sub flood fill

That'd run an unlimited number of floodfills wouldn't it?
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply
#48
It's called recursion. Think of it as a 'controlled' infinite looping.
Reply
#49
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?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#50
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:
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)