https://github.com/coderobe/crixel
crystal sixel renderer lib
https://github.com/coderobe/crixel
Last synced: 10 months ago
JSON representation
crystal sixel renderer lib
- Host: GitHub
- URL: https://github.com/coderobe/crixel
- Owner: coderobe
- License: agpl-3.0
- Created: 2018-11-12T23:07:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T22:51:39.000Z (about 7 years ago)
- Last Synced: 2025-01-26T11:44:28.339Z (12 months ago)
- Language: Crystal
- Homepage:
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crixel
Crystal sixel renderer
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
crixel:
github: fliegermarzipan/crixel
```
2. Run `shards install`
## Usage
```crystal
require "crixel"
# create a canvas
width = 5 # px
height = 5 # px
img = SixelImage.new(width, height)
# change pixel color at x, y coords
img.set(3, 3, 0xFF0000_u32)
# draw
img.render_naive_full
```
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Robin Broda](https://github.com/coderobe) - creator and maintainer