Let's try
to identify what we need to do to achieve the effect of hiding
out our window square by square. Just think:
It is awfully
inefficient if we choose to change its shape several times per
second (creating irregular shaped windows is also available on
VB Offbeat site). This will come up to be a very difficult task
and also, if done, it will be so slow and resource-consuming that
you will soon give up.
So, we have
to find something more acceptable. And the solution is at one
hand - we have to simulate the disappearance of some parts of
the window (in our case, squares). And as we cannot just remove
them that easily, we must cheat the user that they disappear.
And we come
to the conclusion that we need a picture which will cover the
entire window and also we need to draw some squares that represent
the background behind our window onto this picture. We'll do this
at random and with small squares to achieve the effect.
What's actually
left is the way we will do it!