Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JkkUtil - JkkColor

A simple C library for handling and converting colors.

What is Mired?

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: $$M = \frac{1,000,000}{K}$$

Features

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)

Files

  • JkkColor.h - Header file containing function declarations.
  • JkkColor.c - Implementation of the color handling functions.

Usage

Include the header file in your C project:

#include "JkkColor.h"

Licence

This project is open source or MIT

About

A simple C library for handling and converting colors

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages