code: public RgbaColor[] getPaletteVaryLightness(int count) {
          // a max of 80 and an offset of 10 keeps us away from the
          // edges
          float[] spread = getSpreadInRange(l(), count, 80, 10);
          RgbaColor[] ret = new RgbaColor[count];
          for (int i = 0; i < count; i++) {
              ret[i] = withLightness(spread[i]);
          }
          return ret;
      }
docs: palettes