I have made an application (this is just for fun) which starts out with a colored for with a shape in the middle (a + or x, /, \, -, |, or a dot) then it gets all the coordinates surrounding this shape and randomly colors x of them and then it gets the new surrounding pixel coords and selects x of them to color for x times, which works just great, BUT (there just has to be one hasnt there
when something pops up over the form all the coloring disappears.
Now my question is how can I prevent this from happening?
Heres the line I use to color the pixels:
The rest all just getting the coords and randomly selecting X of them to color black.
Any hints or tips are most welcome as I am puzzled to why that is.
BobbaFet ![[bobafett] [bobafett] [bobafett]](/data/assets/smilies/bobafett.gif)
Everyone has a right to my opinion.
Great Delphi Websites faq102-5352
Now my question is how can I prevent this from happening?
Heres the line I use to color the pixels:
Code:
Form1.Canvas.Pixels[X,Y] := clBlack;
The rest all just getting the coords and randomly selecting X of them to color black.
Any hints or tips are most welcome as I am puzzled to why that is.
![[bobafett] [bobafett] [bobafett]](/data/assets/smilies/bobafett.gif)
![[bobafett] [bobafett] [bobafett]](/data/assets/smilies/bobafett.gif)
Everyone has a right to my opinion.
Great Delphi Websites faq102-5352