Calculating # or Rows and Columns

前端 未结 6 892
北海茫月
北海茫月 2021-01-04 13:27

I have a # of images that I\'m stitching together into a sprite sheet, how can I calculate the number of rows and columns to fit equally in an even rectangle (no blank space

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 13:50

    Take a look into Integer Factorization

    Maybe that is what you need.

提交回复
热议问题