Skip to content

Commit

Permalink
Further improvements on diagram color
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Jan 2, 2025
1 parent ae104d1 commit 582e3c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statements/pbrst.y
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 582e3c8

Please sign in to comment.