Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
lab.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2014 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13struct rgb_struct {
14 double r, g, b;/* 0 to 255 */
15};
16typedef struct rgb_struct color_rgb;
17
18struct xyz_struct {
19 double x, y, z;
20};
21typedef struct xyz_struct color_xyz;
22
23struct lab_struct {
24 double l, a, b;
25};
26typedef struct lab_struct color_lab;
27
31void LAB2RGB_real_01(double *color); /* convert an array[3] of LAB colors to RGB between 0 to 1, in place */
33color_rgb color_rgb_init(double r, double g, double b);
34color_xyz color_xyz_init(double x, double y, double z);
35color_lab color_lab_init(double l, double a, double b);
37 const int *lightness,
38 int max_qtree_level);
39double *lab_gamut(const int *lightness,
40 int *n);
42
49double *color_blend_rgb2lab(const char *color_list, const int maxpoints);
static void color(Agraph_t *g)
Definition gvcolor.c:129
static int z
QuadTree lab_gamut_quadtree(const int *lightness, int max_qtree_level)
construct a quadtree of the LAB gamut points
Definition lab.c:186
double * lab_gamut(const int *lightness, int *n)
Definition lab.c:144
color_xyz RGB2XYZ(color_rgb color)
Definition lab.c:55
void LAB2RGB_real_01(double *color)
Definition lab.c:74
color_rgb color_rgb_init(double r, double g, double b)
Definition lab.c:23
color_rgb XYZ2RGB(color_xyz color)
Definition lab.c:112
color_lab color_lab_init(double l, double a, double b)
Definition lab.c:36
color_lab RGB2LAB(color_rgb color)
Definition lab.c:62
color_xyz color_xyz_init(double x, double y, double z)
Definition lab.c:29
double * color_blend_rgb2lab(const char *color_list, const int maxpoints)
Definition lab.c:212
color_rgb LAB2RGB(color_lab color)
Definition lab.c:87
double b
l: 0 to 100, a,b: -128 to 128
Definition lab.h:24
double a
Definition lab.h:24
double l
Definition lab.h:24
double r
Definition lab.h:14
double g
Definition lab.h:14
double b
Definition lab.h:14
double x
Definition lab.h:19
double z
Definition lab.h:19
double y
Definition lab.h:19