From: Magnus Jacobsson Date: Tue, 13 Sep 2022 18:14:47 +0000 (+0200) Subject: tests: test_edge_node_overlap_utilities: use a semi-transparent color X-Git-Tag: 6.0.2~34^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae10b7f3c3b11b686f24fb331575ff404664a12a;p=graphviz tests: test_edge_node_overlap_utilities: use a semi-transparent color This makes it easier to see overlaps. --- diff --git a/tests/test_edge_node_overlap_utilities.cpp b/tests/test_edge_node_overlap_utilities.cpp index b40319575..58b2cb041 100644 --- a/tests/test_edge_node_overlap_utilities.cpp +++ b/tests/test_edge_node_overlap_utilities.cpp @@ -122,14 +122,17 @@ static void write_svg_files(SVGAnalyzer &svg_analyzer, /// generate DOT source based on given options static std::string generate_dot(const graph_options &graph_options) { + // use a semi-transparent color to easily see overlaps + const auto color = "\"#00000060\""; return fmt::format("digraph g1 {{" " graph [rankdir={}]" - " node [penwidth={} shape={} fontname=Courier]" - " edge [penwidth={}]" + " node [penwidth={} shape={} color={} fontname=Courier]" + " edge [penwidth={} color={}]" " a -> b" "}}", graph_options.rankdir, graph_options.node_penwidth, - graph_options.node_shape, graph_options.edge_penwidth); + graph_options.node_shape, color, + graph_options.edge_penwidth, color); } void test_edge_node_overlap(const graph_options &graph_options,