Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

256, not 255

  • Loading branch information...
commit 582bd57126a2e72f6b6e971ae116815b060a88dd 1 parent 9d6741d
@substack authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/noise.hs
View
2  examples/noise.hs
@@ -4,4 +4,4 @@ import System.Random
main = do
g <- newStdGen
(savePngFile "noise.png" =<<) . newImage (400,300) $ do
- setPixels $ map fromInteger $ randomRs (0,255^3) g
+ setPixels $ map fromInteger $ randomRs (0,256^3-1) g
Please sign in to comment.
Something went wrong with that request. Please try again.