static BufferedImage pointsToImage_fromOrigin(Iterable points) { var pointsList = asList(points); if (empty(pointsList)) ret whiteImage(1); Pt size = maxPt(pointsList); var img = whiteImage(size.x+2, size.y+2); for (p : pointsList) setPixel(img, p, Color.black); ret img; }