A simple C library for handling and converting colors.
Mired (short for micro-reciprocal degree) is a unit of measurement used to express color temperature. Unlike the Kelvin scale, the Mired scale is linear, which makes it much easier to calculate color corrections and filter adjustments in photography and lighting.
The formula to convert Kelvin to Mired is:
The library supports the following color space conversions:
- Mired to RGB (
Mired2RGB) - Kelvin to RGB (
Kelvin2RGB) - RGB to HSV (
RGB2HSV) - Mired to HSV (
Mired2HSV) - HSV to Mired (
HSV2Mired)
JkkColor.h- Header file containing function declarations.JkkColor.c- Implementation of the color handling functions.
Include the header file in your C project:
#include "JkkColor.h"This project is open source or MIT