Guest_imported
New member
- Jan 1, 1970
- 0
I am trying to use a paint statement to clear graphics on the screen. I have noticed several strange things that occur when I try this:
After a certain number of sweeps, the paint statement stops doing anything.
The paint proceedure seems to only cover certain parts of the screen, (say when I have a circle flying around the screen, when it reaches the edges of the screen it doesn't get erased by the paint.
Here is a paint tester I made:
SCREEN 13: CLS
COLOR 7
FOR x = 1 TO 20
CIRCLE (92, x * 4), 10, 30
a$ = INPUT$(1)
PAINT (92, x * 4), 4, 7
PRINT x
NEXT x
The numbers should each be surrounded by color as the program loops, but they are not.
I looked in Qbasic help, and it has some other arguments that seemed to suggest a way to paint repeatedly, but it is too brief for me to understand.
I wonder if the problem could be related to the type of computer I have: 700mhz, 30gig, Windows ME. I have noticed that bload and bsave do not work properly on some computers ,and I wonder if such errors apply, somehow, in this situation.
ANTI-STUPID NOTE:
Thank you, but I do not require other suggestions for erasing graphics. What I'm doing seems to work best with the paint statement.
I fully understand that paint will not erase colors which are defined as the border colors.
After a certain number of sweeps, the paint statement stops doing anything.
The paint proceedure seems to only cover certain parts of the screen, (say when I have a circle flying around the screen, when it reaches the edges of the screen it doesn't get erased by the paint.
Here is a paint tester I made:
SCREEN 13: CLS
COLOR 7
FOR x = 1 TO 20
CIRCLE (92, x * 4), 10, 30
a$ = INPUT$(1)
PAINT (92, x * 4), 4, 7
PRINT x
NEXT x
The numbers should each be surrounded by color as the program loops, but they are not.
I looked in Qbasic help, and it has some other arguments that seemed to suggest a way to paint repeatedly, but it is too brief for me to understand.
I wonder if the problem could be related to the type of computer I have: 700mhz, 30gig, Windows ME. I have noticed that bload and bsave do not work properly on some computers ,and I wonder if such errors apply, somehow, in this situation.
ANTI-STUPID NOTE:
Thank you, but I do not require other suggestions for erasing graphics. What I'm doing seems to work best with the paint statement.
I fully understand that paint will not erase colors which are defined as the border colors.