新人一个,请问大佬下面的Table 怎么定义呀
processing吧
全部回复
仅看楼主
level 2
PImage mapImage;
Table locationTable;
int rowCount;
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,0,0);
}
}
2017年12月12日 06点12分 1
1