https://github.com/helmare/fastcolor
Fast argb32 and rgb24 color operations on .NET
https://github.com/helmare/fastcolor
Last synced: 11 months ago
JSON representation
Fast argb32 and rgb24 color operations on .NET
- Host: GitHub
- URL: https://github.com/helmare/fastcolor
- Owner: Helmare
- License: isc
- Created: 2021-11-21T01:31:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T19:34:09.000Z (over 3 years ago)
- Last Synced: 2024-08-31T17:02:52.981Z (almost 2 years ago)
- Language: C#
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# FastColor
As the name suggest, this project features fast color operations ideal for high speed image processing (goes great with [FastBitmap](http://github.com/hazdryx/FastBitmap)).
[](https://www.nuget.org/packages/Hazdryx.FastColor/)

## Operations
| 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`*
## Contribute
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.
### Use In Your Projects
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.
### Submit Pull Requests
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](./CONTRIBUTING.md) for pull request requirements.
### Donate
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.