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