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: 4 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 (4 months ago)
- Default Branch: main
- Last Pushed: 2024-03-24T06:37:39.000Z (4 months ago)
- Last Synced: 2024-03-24T07:28:58.682Z (4 months ago)
- Topics: image, library, png, roc
- Language: Roc
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- 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
```