B space without proper gamma correction. Read more: https://www.handprint.com/HP/WCL/color1.html

        if (ratio !== null) {
            if (ratio < 1) {
                r = 232;
                g = 255;
                b = 232;
            } else if (ratio <= 1) {
                g = 255;
            } else if (ratio <= 2) {
                g = 255;
                r = (ratio - 1) * 255;
            } else if (ratio <= 10) {
                g = (10 - ratio) / 8 * 255;
                r = 255;
          