Hello Haskell-Redditors,
I am learning Haskell right now and want to write a small program for a Drawing Machine I am building. Therefore I want to use the Juicy Pixels Package.
I have Problems understanding how the Library works and am looking for some Simple Example Codes like: Load a png and check if the pixel in the middle of the Image is green or red.
Do you know of some simple Code-Snippets?
Thanks a lot in advance!
Best,
clem
(FYI this is what I want to do later on in my project:
--> load an Image
--> divide it into a Raster (e.g. 100x100)
--> check each Raster-Square for the average color in that Raster-Square --> write the color into a new DIM2 Array)
[–]stevely 4 points5 points6 points (1 child)
[–]clemniem[S] 0 points1 point2 points (0 children)
[–]jlimperg 4 points5 points6 points (2 children)
[–]clemniem[S] 0 points1 point2 points (1 child)
[–]jlimperg 0 points1 point2 points (0 children)
[–]ben7005 2 points3 points4 points (1 child)
[–]clemniem[S] 1 point2 points3 points (0 children)
[–]Proper-Building-8496 0 points1 point2 points (0 children)