diff --git a/main.go b/main.go index f3a7ed7..bc5f315 100644 --- a/main.go +++ b/main.go @@ -14,8 +14,8 @@ func output(client *resty.Client, url string, width, height int, arr [][]Cell) { // Prepare instructions for matrix instructions := make([]interface{}, 0) // Append all live cells as pixel instructions - for i := 0; i < width; i++ { - for j := 0; j < height; j++ { + for j := 0; j < height; j++ { + for i := 0; i < width; i++ { if arr[i][j].live { instructions = append(instructions, Pixel{X: i, Y: j, Endpoint: PIXEL}) goterm.Print("X")