From: yu.dongliang <18588496441@163.com> Date: Sun, 16 Jul 2023 14:17:46 +0000 (+0800) Subject: change color of lines X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=2d49ce1672f142e36e245cd01bb9c0968567625b;p=ses.git change color of lines --- diff --git a/ses_layout.c b/ses_layout.c index affc2eb..7b4c5b7 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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;