Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
color_palette.c File Reference
#include <sparse/color_palette.h>
#include <stdbool.h>
#include <string.h>
#include <util/streq.h>
Include dependency graph for color_palette.c:

Go to the source code of this file.

Enumerations

enum  { npalettes = 265 }
 

Functions

const char * color_palettes_get (const char *color_palette_name)
 
static bool color_palettes_Q (const char *color_palette_name)
 
bool knownColorScheme (const char *name)
 

Variables

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

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
npalettes 

Definition at line 16 of file color_palette.c.

Function Documentation

◆ color_palettes_get()

const char * color_palettes_get ( const char *  color_palette_name)

Definition at line 375 of file color_palette.c.

References color_palettes, npalettes, and NULL.

Referenced by color_blend_rgb2lab(), color_palettes_Q(), and node_distinct_coloring().

Here is the caller graph for this function:

◆ color_palettes_Q()

static bool color_palettes_Q ( const char *  color_palette_name)
static

Definition at line 385 of file color_palette.c.

References color_palettes_get(), and NULL.

Referenced by knownColorScheme().

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

◆ knownColorScheme()

bool knownColorScheme ( const char *  name)

Definition at line 389 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

const char* const color_palettes[npalettes][2]
static

Definition at line 18 of file color_palette.c.

Referenced by color_palettes_get().

◆ palette_adam

const 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 7607 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_adam_blend

const float palette_adam_blend[1001][3]

Definition at line 6605 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_blue_to_yellow

const float palette_blue_to_yellow[1001][3]

Definition at line 1399 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_grey

const float palette_grey[1001][3]

Definition at line 3304 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_grey_to_red

const float palette_grey_to_red[1001][3]

Definition at line 1897 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_pastel

const float palette_pastel[1001][3]

Definition at line 397 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_primary

const float palette_primary[1001][3]

Definition at line 3579 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_sequential_singlehue_red

const float palette_sequential_singlehue_red[1001][3]

Definition at line 4587 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_sequential_singlehue_red_lighter

const float palette_sequential_singlehue_red_lighter[1001][3]

Definition at line 5594 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().

◆ palette_white_to_red

const float palette_white_to_red[1001][3]

Definition at line 2602 of file color_palette.c.

Referenced by Import_coord_clusters_from_dot().