谁可以看看processing这个程序有什么问题啊,出错说the constructor table is undefined
voidsetup(){size(640,400);mapImage=loadImage("map.png");locationTable=newTable("locat...
void setup()
{
size(640,400);
mapImage=loadImage("map.png");
locationTable = new Table("locations.tsv");
rowCount=locationTable.getRowCount();
}
void draw()
{
background(255);
image(mapImage,0,0);
smooth();
fill(192,0,0);
noStroke();
for(int row=0;row<rowCount;row++)
{
float x=locationTable.getFloat(row,1);
float y=locationTable.getFloat(row,2);
eclipse(x,y,9,9);
}
} 展开
{
size(640,400);
mapImage=loadImage("map.png");
locationTable = new Table("locations.tsv");
rowCount=locationTable.getRowCount();
}
void draw()
{
background(255);
image(mapImage,0,0);
smooth();
fill(192,0,0);
noStroke();
for(int row=0;row<rowCount;row++)
{
float x=locationTable.getFloat(row,1);
float y=locationTable.getFloat(row,2);
eclipse(x,y,9,9);
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询