How to make a grid so the cells are as square as possible with any given aspect ratio?

前端 未结 0 780
南方客
南方客 2021-01-29 11:11

I am drawing a grid of dots, is basically a nested array:

const colWidth = (p5.width / cols)
const colHeight = (p5.height / rows)


for (let x = 0; x < cols+1;         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题