From 582e3c83c3ac1b6059882e500a9f0078fcc09d99 Mon Sep 17 00:00:00 2001 From: kovben2004 Date: Thu, 2 Jan 2025 18:43:19 +0100 Subject: [PATCH] Further improvements on diagram color --- statements/pbrst.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statements/pbrst.y b/statements/pbrst.y index e3787bc..e851bec 100644 --- a/statements/pbrst.y +++ b/statements/pbrst.y @@ -906,7 +906,7 @@ void create_diagram() { strcpy(D, ""); strcat(D, "digraph {\n"); strcat(D, " nodesep=0.1;\n"); // a lower number can shorten the edges - strcat(D, " node [shape=rectangle,color=blue,style=filled,height=0.4,width=0.4,fontsize=14];\n"); + strcat(D, " node [shape=rectangle,color=\"#8080ff\",style=filled,height=0.4,width=0.4,fontsize=14];\n"); #define MAX_BLOCKS 100 int nt_blocks[MAX_BLOCKS][2]; // copies from the coverings, positions and length are stored int nt_blocks_n = 0; @@ -1130,7 +1130,7 @@ void create_diagram() { sprintf(intbuffer, "%d", nt_blocks[i][1]); // show block length strcat(D, intbuffer); if (!show_length) strcat(D, ",fontcolor=\"#dddddd\""); - strcat(D, ",fillcolor=white,shape=rectangle];\n"); + strcat(D, ",fillcolor=white,color=\"#ccccff\"];\n"); } if (nodetype == INTRODUCTION) { sprintf(intbuffer, "%d", nt_blocks[i][1]); // show block length