Stream: show and tell

Topic: image library with PNG export in pure Roc


view this post on Zulip Shritesh Bhattarai (Mar 20 2024 at 03:48):

I've implemented a simple image library in pure Roc that supports exporting to (uncompressed) PNG. https://github.com/shritesh/roc-image. The crc32 and adler32 implementations might also be useful. These are the outputs from the examples.

gradient.png
pixels.png

view this post on Zulip Richard Feldman (Mar 20 2024 at 11:08):

so cool!!!!

view this post on Zulip Shritesh Bhattarai (Mar 24 2024 at 06:39):

Here's Roc's logo rendered using a scanline renderer written in Roc: https://github.com/shritesh/roc-image/blob/main/examples/logo.roc logo.png

view this post on Zulip Richard Feldman (Mar 24 2024 at 11:53):

beautiful!

view this post on Zulip Shritesh Bhattarai (Jun 10 2024 at 20:36):

Thanks to @Ian McLerran , roc-image is now released as a proper roc package: https://github.com/shritesh/roc-image/releases/tag/v0.1


Last updated: Jul 06 2025 at 12:14 UTC