+write_values_slice_to_bitmap :: Values2D -> FilePath -> IO ()
+write_values_slice_to_bitmap v3d path =
+ R.writeComponentsToBMP path routput goutput boutput
+ where
+ arr_bracketed = bracket_array v3d
+ colors = values_to_colors $ R.map fromIntegral arr_bracketed
+ routput = R.map (\(red, _, _) -> red) colors
+ goutput = R.map (\(_, green, _) -> green) colors
+ boutput = R.map (\(_, _, blue) -> blue) colors