- double scale = ( 100.0 / 433.0 // base height from PNG
- * (y - 680) / (875 - 680) ); // perspective
+ poss.add(new Pos(x, y));
+ }
+ poss.sort(new Comparator<Pos>() {
+ public int compare(Pos a, Pos b) { return a.y < b.y ? -1 : 1; }
+ });
+
+ for (Pos p : poss) {
+ double scale = ( 90.0 / 433.0 // base height from PNG
+ * (p.y - 680) / (875 - 680) ); // perspective