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