Functions | Variables
husl.c File Reference
#include "husl.h"
#include <math.h>
#include <float.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for husl.c:

Go to the source code of this file.

Functions

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)
 

Variables

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]
 

Function Documentation

float dotProduct ( float *  a,
float *  b,
int  len 
)

Definition at line 124 of file husl.c.

float f ( float  t)

Definition at line 142 of file husl.c.

float f_inv ( float  t)

Definition at line 151 of file husl.c.

float fromLinear ( float  c)

Definition at line 160 of file husl.c.

float * HUSL_LCH ( float *  tuple)

Definition at line 328 of file husl.c.

void HUSLtoRGB ( float *  r,
float *  g,
float *  b,
float  h,
float  s,
float  l 
)

Definition at line 56 of file husl.c.

float * LCH_HUSL ( float *  tuple)

Definition at line 346 of file husl.c.

float * LCH_LUV ( float *  tuple)

Definition at line 309 of file husl.c.

float * LUV_LCH ( float *  tuple)

Definition at line 287 of file husl.c.

float * LUV_XYZ ( float *  tuple)

Definition at line 260 of file husl.c.

float maxChroma ( float  L,
float  H 
)

Definition at line 91 of file husl.c.

float * RGB_XYZ ( float *  tuple)

Definition at line 215 of file husl.c.

float * rgbPrepare ( float *  tuple)

Definition at line 180 of file husl.c.

void RGBtoHUSL ( float *  h,
float *  s,
float *  l,
float  r,
float  g,
float  b 
)

Definition at line 71 of file husl.c.

float round_ ( float  num,
int  places 
)

Definition at line 135 of file husl.c.

float toLinear ( float  c)

Definition at line 169 of file husl.c.

float * XYZ_LUV ( float *  tuple)

Definition at line 239 of file husl.c.

float * XYZ_RGB ( float *  tuple)

Definition at line 201 of file husl.c.

Variable Documentation

char hex[64]

Definition at line 28 of file husl.c.

float lab_e = 0.008856f

Definition at line 25 of file husl.c.

float lab_k = 903.3f

Definition at line 26 of file husl.c.

float m[3][3] = {{3.2406f, -1.5372f, -0.4986f}, {-0.9689f, 1.8758f, 0.0415f}, {0.0557f, -0.2040f, 1.0570f}}

Definition at line 18 of file husl.c.

float m_inv[3][3] = {{0.4124f, 0.3576f, 0.1805f}, {0.2126f, 0.7152f, 0.0722f}, {0.0193f, 0.1192f, 0.9505f}}

Definition at line 19 of file husl.c.

float refU = 0.19784f

Definition at line 23 of file husl.c.

float refV = 0.46834f

Definition at line 24 of file husl.c.

float refX = 0.95047f

Definition at line 20 of file husl.c.

float refY = 1.00000f

Definition at line 21 of file husl.c.

float refZ = 1.08883f

Definition at line 22 of file husl.c.

float values[3]

Definition at line 29 of file husl.c.



rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43