Twinside / Rasterific

A drawing engine in Haskell
BSD 3-Clause "New" or "Revised" License
140 stars 11 forks source link

Can't render a drawing with PixelRGB8 #25

Closed dtaskoff closed 7 years ago

dtaskoff commented 7 years ago

In the documentations is written:

type RenderablePixel px = ...
...
All pixel instances of JuicyPixels should be usable.
...
Tested pixels type are PixelRGBA8 and Pixel8, pixel types in other colorspace will probably produce weird results.
...

But with PixelRGB8 it doesn't even compile:

No instance for (Num (Codec.Picture.Types.PackedRepresentation PixelRGB8))
arising from a use of ‘renderDrawing’

Is there a way to do this? If not, please change the documentation, so that it's clear which Pixel types can be used.

Twinside commented 7 years ago

Looks like outdated documentation to me, it probably was true at the beginning.