Tuesday, 25 November 2014

Lab 5 save table balloon

Table table;

void setup() {

  table = new Table();

  table.addColumn("positiony", Table.INT);
  table.addColumn("positionx", Table.INT);
  table.addColumn("radius", Table.INT);

TableRow[] Row = new TableRow[2];

  Row[0] = table.addRow();
  Row[0].setInt("positionx", 300);
  Row[0].setInt("positiony",300);
  Row[0].setInt("radius", 60);

  Row[1] = table.addRow();
  Row[1].setInt("positionx",200);
  Row[1].setInt("positiony",100);
  Row[1].setInt("radius", 80);
  saveTable(table, "data/new.csv");
}

No comments:

Post a Comment