I want to make grid of rectangles in diamond shape in javascript with for loops on canvas.I have done it in python out of stars:
#prints top triangle for i in