Pixel isometric grid

I want to turn this grid using for loops into an isometric grid and i cant figure out how exactly to do that I have done some research and still cant figure it out