private void colorMidTemp(int i, int j, long temp) {
        for (int k = 0; k < tempRangesMid.length; k++) {
            if (temp < tempRangesMid[k]) {
                drawing.setRGB(i, j, colorRangesMid[k]);
                break;
            }
        }
    }