Graphviz 13.0.0~dev.20241220.2304
|
flow colors through a ranked digraph More...
#include <assert.h>
#include <cgraph/cgraph.h>
#include <cgraph/ingraphs.h>
#include "colorxlate.h"
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/exit.h>
#include <stdio.h>
#include <getopt.h>
Go to the source code of this file.
Data Structures | |
struct | Agnodeinfo_t |
Macros | |
#define | NC 3 /* size of HSB color vector */ |
#define | ND_relrank(n) (((Agnodeinfo_t*)((n)->base.data))->relrank) |
#define | ND_x(n) (((Agnodeinfo_t*)((n)->base.data))->x) |
Functions | |
static int | cmpf (const void *x, const void *y) |
static void | setcolor (char *p, double *v) |
static void | usage (int v) |
static void | init (int argc, char *argv[]) |
static void | color (Agraph_t *g) |
int | main (int argc, char **argv) |
Variables | |
double | Defcolor [NC] = { 0.0, 0.0, 1.0 } |
int | Forward = 1 |
int | LR = 0 |
int | AdjustSaturation |
double | MinRankSaturation |
double | MaxRankSaturation |
static char ** | Files |
static char * | useString |
#define ND_relrank | ( | n | ) | (((Agnodeinfo_t*)((n)->base.data))->relrank) |
#define ND_x | ( | n | ) | (((Agnodeinfo_t*)((n)->base.data))->x) |
|
static |
Definition at line 57 of file gvcolor.c.
References ND_relrank.
Referenced by color().
|
static |
Definition at line 129 of file gvcolor.c.
References AdjustSaturation, agattr(), agfstedge(), agfstnode(), agget(), aghead, aginit(), agnnodes(), AGNODE, agnxtedge(), agnxtnode(), agset(), agtail, cmpf(), cnt(), Defcolor, Forward, free(), graphviz_exit(), gv_calloc(), LR, MaxRankSaturation, MinRankSaturation, NC, ND_relrank, ND_x, NULL, and setcolor().
Referenced by cairogen_add_color_stop_rgba(), cairogen_set_color(), color_interpolation(), color_string(), Color_Widget_bg(), colorx(), colorxlate(), doBorder(), drawtopfishedges(), drawtopfishnodes(), emit_clusters(), emit_edge_graphics(), emit_html_rules(), fig_resolve_color(), fig_textspan(), findFillDflt(), findStopColor(), gdgen_resolve_color(), get_color_button_widget_to_attribute(), GetglCompColor(), gvrender_resolve_color(), gvrender_set_fillcolor(), gvrender_set_gradient_vals(), gvrender_set_pencolor(), Import_coord_clusters_from_dot(), LAB2RGB(), LAB2RGB_real_01(), linGradient(), main(), makeDotGraph(), multicolor(), parseSegs(), penColor(), point_gencode(), poly_gencode(), pov_color_as_str(), ps_set_color(), ps_set_color(), radGradient(), RGB2LAB(), RGB2XYZ(), set_color_button_widget(), setFill(), svg_print_gradient_color(), svg_print_paint(), svg_print_stop(), tclGd_GetColor(), tclGdArcCmd(), tclGdColorClosestCmd(), tclGdColorExactCmd(), tclGdColorNewCmd(), tclGdColorResolveCmd(), tclGdColorTranspCmd(), tclGdFillCmd(), tclGdGetCmd(), tclGdLineCmd(), tclGdPolygonCmd(), tclGdRectCmd(), tclGdSetCmd(), tclGdTextCmd(), tkgen_print_color(), toGradString(), write_stops(), and XYZ2RGB().
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 251 of file gvcolor.c.
References agclose(), agwrite(), color(), Files, graphviz_exit(), init(), newIngraph(), and nextGraph().
|
static |
Definition at line 79 of file gvcolor.c.
References agxbfree(), agxbuse(), and colorxlate().
Referenced by color().
|
static |
Definition at line 95 of file gvcolor.c.
References graphviz_exit(), and useString.
double Defcolor[NC] = { 0.0, 0.0, 1.0 } |
int LR = 0 |
Definition at line 51 of file gvcolor.c.
Referenced by color(), and parse_reclbl().