阅读背景:

如何根据数组中的项目填充矩形?

来源:互联网 

So basically, I need to generate an array of 1's and 0's, then fill a set amount of rectangles. The rectangles are "squares" and are required to form a bigger square. Say, I want my big square to be 500 pixels wide and high, and have it filled with 100 squares, so I need an 10 arrays with length 10 -which i partially have succeeded- and then i need to fill the small squares depending on the index of the arrays generated, like, square 1-1 should be filled if array 1-1 is 1, and so on. So basically, I need to generate an array of 1'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: