// f: 0 to 1 static Color grayToColor(double f) { ret toColor(brightnessToRGBA(iceil(f*256))); }