Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shritesh/roc-image
An image library that supports exporting to PNG.
https://github.com/shritesh/roc-image
image library png roc
Last synced: 3 months ago
JSON representation
An image library that supports exporting to PNG.
- Host: GitHub
- URL: https://github.com/shritesh/roc-image
- Owner: shritesh
- Created: 2024-03-20T03:42:51.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T20:32:38.000Z (5 months ago)
- Last Synced: 2024-07-19T21:32:43.553Z (4 months ago)
- Topics: image, library, png, roc
- Language: Roc
- Homepage:
- Size: 7.81 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- roc-awesome - shritesh/roc-image
README
# roc-image
An image library that supports exporting to PNG.
## Example
```roc
Image.new 3 1
|> Result.try \image -> Image.set image 0 0 (255, 0, 0, 255)
|> Result.try \image -> Image.set image 1 0 (0, 255, 0, 255)
|> Result.try \image -> Image.set image 2 0 (0, 0, 255, 255)
|> Result.map Image.toPNG
```