srecord CloseToColorPredicate(int color, double maxDistance) extends F1 { Bool get(int rgb) { ret rgbDiff(rgb, color) <= maxDistance; } }