In the menu, go:
Select > Modify > Contract... 2 pixels
Press Delete to clear the selection, and then use the arrow keys on your keyboard to nudge the selection up and to the left by 2 pixels.
Edit > Define Pattern
Create a new channel , select the Paint Bucket Tool
.
Then, go to the Options palette.
Window > Show Options
Change the Contents dropdown to Pattern, and then click inside the new channel to fill it with the grid pattern.
In the Channels window, click on the Load Channel as Selection button.
Go back to the Layers window, and create a new layer.
Press D on the keyboard to select Black as the foreground color, and then press Alt+Backspace to fill the selection.
Ctrl+D to deselect.
Click and hold down the Rectangular Marquee Tool button, and select the Elliptical Marquee Tool
Holding down Shift, make a circular selection filling up most of the image.
Filter > Distort > Sphereize... Amount 100
Select > Inverse
Edit