change color of lines
authoryu.dongliang <18588496441@163.com>
Sun, 16 Jul 2023 14:17:46 +0000 (22:17 +0800)
committeryu.dongliang <18588496441@163.com>
Sun, 16 Jul 2023 14:17:46 +0000 (22:17 +0800)
ses_layout.c

index affc2ebf784d7196b26c0ab9e9eb71f23014772b..7b4c5b7ba73927959bf5d999391bf3aa9ab545ca 100644 (file)
@@ -744,24 +744,13 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
        size_t j;
        size_t k;
 
-       double lcolors[3][3] =
-       {
-               {1, 0, 1},
-               {1, 0.5, 0},
-               {0, 1, 1},
-       };
-
        for (i = 0; i < b->n_functions; i++) {
                f  =        b->functions[i];
 
                for (j = 0; j < f->n_elines; j++) {
                        el =        f->elines[j];
 
-                       double red   = lcolors[j % 3][0];
-                       double green = lcolors[j % 3][1];
-                       double blue  = lcolors[j % 3][2];
-
-                       cairo_set_source_rgb(cr, red, green, blue);
+                       cairo_set_source_rgb(cr, 1, 0.5, 0.1);
 
                        for (k = 0; k + 1 < el->n_pins; k += 2) {
 
@@ -782,7 +771,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
                                        break;
 
                                } else if (SCF_EDA_PIN_OUT & p->flags) {
-                                       cairo_set_source_rgb(cr, 0, 0, 0);
+                                       cairo_set_source_rgb(cr, 1, 0, 1);
                                        break;
                                }
                        }
@@ -824,7 +813,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
                        cairo_show_text       (cr, text);
                        cairo_stroke(cr);
 
-                       cairo_set_source_rgb(cr, 0.5, 0.5, 0.0);
+                       cairo_set_source_rgb(cr, 0.6, 0.6, 0.0);
 
                        int dx0;
                        int dy0;