drawIn method

void drawIn(
  1. int index,
  2. double x,
  3. double y
)

Implementation

void drawIn(int index, double x, double y) {
  textPoints[index] = [x, y];
  for (int i = x.toInt(); i < x.toInt() + textlist[index].width; i++) {
    for (int j = y.toInt();
        j < y.toInt() + textlist[index].height.floor();
        j++) {
      map[i][j] = 1;
    }
  }
}