#include "husl.h"
#include <math.h>
#include <float.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
|
float | dotProduct (float *a, float *b, int len) |
|
float | f (float t) |
|
float | f_inv (float t) |
|
float | fromLinear (float c) |
|
float * | HUSL_LCH (float *tuple) |
|
void | HUSLtoRGB (float *r, float *g, float *b, float h, float s, float l) |
|
float * | LCH_HUSL (float *tuple) |
|
float * | LCH_LUV (float *tuple) |
|
float * | LUV_LCH (float *tuple) |
|
float * | LUV_XYZ (float *tuple) |
|
float | maxChroma (float L, float H) |
|
float * | RGB_XYZ (float *tuple) |
|
float * | rgbPrepare (float *tuple) |
|
void | RGBtoHUSL (float *h, float *s, float *l, float r, float g, float b) |
|
float | round_ (float num, int places) |
|
float | toLinear (float c) |
|
float * | XYZ_LUV (float *tuple) |
|
float * | XYZ_RGB (float *tuple) |
|
|
char | hex [64] |
|
float | lab_e = 0.008856f |
|
float | lab_k = 903.3f |
|
float | m [3][3] = {{3.2406f, -1.5372f, -0.4986f}, {-0.9689f, 1.8758f, 0.0415f}, {0.0557f, -0.2040f, 1.0570f}} |
|
float | m_inv [3][3] = {{0.4124f, 0.3576f, 0.1805f}, {0.2126f, 0.7152f, 0.0722f}, {0.0193f, 0.1192f, 0.9505f}} |
|
float | refU = 0.19784f |
|
float | refV = 0.46834f |
|
float | refX = 0.95047f |
|
float | refY = 1.00000f |
|
float | refZ = 1.08883f |
|
float | values [3] |
|
float dotProduct |
( |
float * |
a, |
|
|
float * |
b, |
|
|
int |
len |
|
) |
| |
float fromLinear |
( |
float |
c | ) |
|
float * HUSL_LCH |
( |
float * |
tuple | ) |
|
void HUSLtoRGB |
( |
float * |
r, |
|
|
float * |
g, |
|
|
float * |
b, |
|
|
float |
h, |
|
|
float |
s, |
|
|
float |
l |
|
) |
| |
float * LCH_HUSL |
( |
float * |
tuple | ) |
|
float * LCH_LUV |
( |
float * |
tuple | ) |
|
float * LUV_LCH |
( |
float * |
tuple | ) |
|
float * LUV_XYZ |
( |
float * |
tuple | ) |
|
float maxChroma |
( |
float |
L, |
|
|
float |
H |
|
) |
| |
float * RGB_XYZ |
( |
float * |
tuple | ) |
|
float * rgbPrepare |
( |
float * |
tuple | ) |
|
void RGBtoHUSL |
( |
float * |
h, |
|
|
float * |
s, |
|
|
float * |
l, |
|
|
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
float round_ |
( |
float |
num, |
|
|
int |
places |
|
) |
| |
float toLinear |
( |
float |
c | ) |
|
float * XYZ_LUV |
( |
float * |
tuple | ) |
|
float * XYZ_RGB |
( |
float * |
tuple | ) |
|
float m[3][3] = {{3.2406f, -1.5372f, -0.4986f}, {-0.9689f, 1.8758f, 0.0415f}, {0.0557f, -0.2040f, 1.0570f}} |
float m_inv[3][3] = {{0.4124f, 0.3576f, 0.1805f}, {0.2126f, 0.7152f, 0.0722f}, {0.0193f, 0.1192f, 0.9505f}} |