X-Git-Url: http://gitweb.michael.orlitzky.com/?p=spline3.git;a=blobdiff_plain;f=src%2FVolumetric.hs;h=2f2819cf502fcfbeac9f84cb568670b62b300afb;hp=64669fee1a7205f6a41d8cfa4718e4961a10ebf6;hb=81673dd2be73c0d276af2ff4e9d5503c07189d53;hpb=7d9913abf931dcbfe553c2cd872b604e5bbeafc0 diff --git a/src/Volumetric.hs b/src/Volumetric.hs index 64669fe..2f2819c 100644 --- a/src/Volumetric.hs +++ b/src/Volumetric.hs @@ -138,9 +138,9 @@ values_to_colors arr = truncate_rgb (r, g, b) = (r', g', b') where - r' = truncate (r * 255) - g' = truncate (g * 255) - b' = truncate (b * 255) + r' = truncate (r * 255) :: Word8 + g' = truncate (g * 255) :: Word8 + b' = truncate (b * 255) :: Word8 write_values_to_bmp :: FilePath -> Values2D -> IO ()