writeArrayToStorableFile )
import Data.Array.Repa.IO.BMP ( writeImageToBMP )
import Data.Array.Repa.Operators.Traversal ( unsafeTraverse )
-import Data.Array.Repa.Repr.Unboxed ( Unbox )
import Data.Array.Repa.Slice ( All( All ), Any( Any ) )
import Values ( Values, Values2D )
writeImageToBMP path colors
-z_slice :: (Unbox a, Source r a) => Int -> Array r DIM3 a -> Array D DIM2 a
+z_slice :: (Source r a) => Int -> Array r DIM3 a -> Array D DIM2 a
z_slice n arr =
slice arr (Any :. n :. All :. All)