static L colorPaletteByBits(int bits) { ret map(outerProduct(rep(3, countIteratorAsList(0, 1 << bits, i -> iround(i*255.0/(1 << bits-1)) ))), rgb -> new Color(first(rgb), second(rgb), third(rgb))); }