Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
color_palette.c File Reference
#include <sparse/color_palette.h>
#include <string.h>
#include <common/macros.h>
#include <cgraph/streq.h>
Include dependency graph for color_palette.c:

Go to the source code of this file.

Functions

int knownColorScheme (const char *name)
 
char * color_palettes_get (char *color_palette_name)
 
int color_palettes_Q (const char *color_palette_name)
 

Variables

char * color_palettes [npalettes][2]
 
float palette_pastel [1001][3]
 
float palette_blue_to_yellow [1001][3]
 
float palette_grey_to_red [1001][3]
 
float palette_white_to_red [1001][3]
 
float palette_grey [1001][3]
 
float palette_primary [1001][3]
 
float palette_sequential_singlehue_red [1001][3]
 
float palette_sequential_singlehue_red_lighter [1001][3]
 
float palette_adam_blend [1001][3]
 
float palette_adam [11][3]
 

Function Documentation

◆ color_palettes_get()

char * color_palettes_get ( char *  color_palette_name)

Definition at line 27 of file color_palette.c.

References color_palettes, npalettes, and NULL.

Referenced by color_blend_rgb2lab(), and node_distinct_coloring().

Here is the caller graph for this function:

◆ color_palettes_Q()

int color_palettes_Q ( const char *  color_palette_name)

Definition at line 37 of file color_palette.c.

References color_palettes, and npalettes.

Referenced by knownColorScheme().

Here is the caller graph for this function:

◆ knownColorScheme()

int knownColorScheme ( const char *  name)

Definition at line 16 of file color_palette.c.

References color_palettes_Q(), and streq().

Referenced by init(), and init().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ color_palettes

char* color_palettes[npalettes][2]

Definition at line 48 of file color_palette.c.

Referenced by color_palettes_get(), and color_palettes_Q().

◆ palette_adam

float palette_adam[11][3]
Initial value:
={{1.f, 0.44705882352941173f, 0.f},
{0.9607843137254902f, 0.4666666666666667f, 0.09019607843137255f},
{0.2549019607843137f, 0.7019607843137254f, 0.8627450980392157f},
{0.9254901960784314f, 0.f, 0.5490196078431373f},
{0.023529411764705882f, 0.4784313725490196f, 0.7058823529411764f},
{0.047058823529411764f, 0.14509803921568626f, 0.4666666666666667f},
{0.5058823529411764f, 0.00392156862745098f, 0.10196078431372549f},
{0.7764705882352941f, 0.8313725490196078f, 0.2392156862745098f},
{0.43137254901960786f, 0.7333333333333333f, 0.12156862745098039f},
{0.7019607843137254f, 0.0392156862745098f, 0.23529411764705882f},
{0.5019607843137255f, 0.5019607843137255f, 0.5019607843137255f}}

Definition at line 7526 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_adam_blend

float palette_adam_blend[1001][3]

Definition at line 6524 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_blue_to_yellow

float palette_blue_to_yellow[1001][3]

Definition at line 1318 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_grey

float palette_grey[1001][3]

Definition at line 3223 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_grey_to_red

float palette_grey_to_red[1001][3]

Definition at line 1816 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_pastel

float palette_pastel[1001][3]

Definition at line 316 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_primary

float palette_primary[1001][3]

Definition at line 3498 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_sequential_singlehue_red

float palette_sequential_singlehue_red[1001][3]

Definition at line 4506 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_sequential_singlehue_red_lighter

float palette_sequential_singlehue_red_lighter[1001][3]

Definition at line 5513 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_white_to_red

float palette_white_to_red[1001][3]

Definition at line 2521 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().