Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
colorutil.c File Reference
#include <cgraph/agxbuf.h>
#include <sparse/colorutil.h>
#include <sparse/general.h>
#include <stdio.h>
Include dependency graph for colorutil.c:

Go to the source code of this file.

Functions

static int r2i (float r)
 
void rgb2hex (float r, float g, float b, agxbuf *cstring, const char *opacity)
 

Function Documentation

◆ r2i()

static int r2i ( float  r)
static

Definition at line 16 of file colorutil.c.

Referenced by rgb2hex().

Here is the caller graph for this function:

◆ rgb2hex()

void rgb2hex ( float  r,
float  g,
float  b,
agxbuf cstring,
const char *  opacity 
)

Definition at line 21 of file colorutil.c.

References agxbprint(), agxbput_n(), and r2i().

Referenced by Dot_SetClusterColor(), and plot_dot_polygons().

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