【发布时间】:2021-10-21 12:23:22
【问题描述】:
这是我第一次在这里提出问题,我很沮丧,因为我已经尝试了几个小时来解决这个问题。为什么我的代码没有单独构建每个多维数据集。代码应该用立方体水平填充画布,填充另一行后换行。
void setup() {
size(600,600);
background(0);
frameRate(1);
}
int n=0;
int y=0;
int xCoord=0;
void draw() {
while(n<10)
{
for(int i = 0; i<10; i++)
{
rect(xCoord, y, 60,60);
xCoord += 60;
}
xCoord = 0; n++; y+=60;
}
}
【问题讨论】:
-
能否提供更多代码,minimal reproducible example。这就是你所拥有的(任何其他 js 或 html)吗?
-
这是javascript还是java?
-
呃javascript没有函数返回类型
-
嗨。我在处理 3 工作,这是 java
-
void draw() { while (n
标签: java matrix processing