function DrawSquare()

myImage = ones(100,100,'uint8')*64;
image(myImage);
axis off;
colormap(gray);
hold on;

shift = 1;
while(true)
    shift = shift+1;
    myImage = ones(100,100,'uint8')*64;
    myImage(:,mod([1:10,21:30,42:50,61:70,81:90]+shift,100)+1) = 0;
    myImage(mod([1:10,21:30,42:50,61:70,81:90]+shift,100)+1,:) = 32;
    image(myImage)
    pause(.1)
end

end