pix_fmt.cr
pix_fmt.cr
A Crystal library for working with different pixel formats, such as RGB, RGBA, BGR, HSL, HSV, HSVA, YUV, and YUYV.
Features
- RGB / RGBA
- BGR
- HSV / HSVA
- HSL
- YUV
- YUYV
Installation
-
Add the dependency to your
shard.yml
:dependencies: pixel: github: postmodern/pix_fmt
-
Run
shards install
Usage
require "pix_fmt/rgb"
pix = PixFmt::RGB.new(0,255,0)
yuyv_pix = pix.to_yuyv
TODO
- Add arithmetic operation functions.
- Add a YUYV -> RGB conversion function.
- Add a RGB -> YUYV conversion function.
- Add a HSL -> RGB conversion function.
- Add a HSV -> RGB conversion function.
Contributing
- Fork it (https://github.com/postmodern/pix_fmt/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Postmodern - creator and maintainer
Repository
pix_fmt.cr
Owner
Statistic
- 2
- 0
- 0
- 0
- 1
- over 3 years ago
- March 16, 2021
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 06:31:19 GMT
Languages