As the name suggest, this project features fast color operations ideal for high speed image processing (goes great with FastBitmap).
Operation | Description | Color Formats |
---|---|---|
Explode |
Splits an int into it's color components. |
argb32 , bgra32 , rgb24 *, bgr24 * |
Implode |
Combines color components into an int . |
argb32 , bgra32 , rgb24 *, bgr24 * |
Reverse |
Flips argb components to bgra or vice versa. | argb32 , bgra32 |
Add |
Adds two colors together | argb32 , bgra32 , rgb24 *, bgr24 * |
Sub |
Subtracts two colors from eachother | argb32 , bgra32 , rgb24 *, bgr24 * |
Mul |
Multiplies two colors together | argb32 , bgra32 , rgb24 *, bgr24 * |
rgb24
and bgr24
colors are supported, but the alpha value is read as 0
Want to help move this project forward? Consider contributing to the project. There are many different ways you can help out, even if you don't want to submit code changes.
The easiest way to contribute is to have this repo as a dependency in your projects. This contribution gives the project more recognition and likely to be seen by other developers, thereby growing the community.
If you would like to make changes to the codebase or documentation, you can submit a pull request. Make sure to check out the CONTRIBUTING.md for pull request requirements.
If you don't want to submit a pull request or just want to support my work further, consider sending me a donation. Donations help me spend more time on open-source projects so they can be of the highest quality possible.