Hollow diamond pattern

can someone please send the reference code for this

Reference Code

I recommend you to try at your own first