summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 16:01:54 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 16:01:54 -0300
commit9eefd8b0787ca70a284be5a13cd54189f91012c8 (patch)
treefcf75418dfd39934845b62326e09820e5c6974da /gfx
parentc0b41d4eae3b6164d307ff2bc7bdee266d897dee (diff)
downloadeeshow-9eefd8b0787ca70a284be5a13cd54189f91012c8.tar.gz
eeshow-9eefd8b0787ca70a284be5a13cd54189f91012c8.tar.bz2
eeshow-9eefd8b0787ca70a284be5a13cd54189f91012c8.zip
kicad/lib-render.c (lib_render_extra): render pin type
Diffstat (limited to 'gfx')
-rw-r--r--gfx/style.c2
-rw-r--r--gfx/style.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/gfx/style.c b/gfx/style.c
index a2c58ab..1b90fbc 100644
--- a/gfx/style.c
+++ b/gfx/style.c
@@ -20,6 +20,7 @@ uint32_t color_rgb[] = {
[COLOR_BLACK] = 0x000000,
[COLOR_BLUE] = 0x0000ff,
[COLOR_GREEN] = 0x00ff00,
+ [COLOR_CYAN] = 0x00ffff,
[COLOR_RED] = 0xff0000,
[COLOR_YELLOW] = 0xffff00,
[COLOR_WHITE] = 0xffffff,
@@ -42,6 +43,7 @@ uint32_t color_rgb[] = {
* If COLOR_LIGHT_YELLOW should be visible in diff (and not
* just appear white), use 0xffffa0 or darker.
*/
+ [COLOR_ORANGE] = 0xff6000,
};
unsigned n_color_rgb = ARRAY_ELEMENTS(color_rgb);
diff --git a/gfx/style.h b/gfx/style.h
index 96ca9eb..9d422f4 100644
--- a/gfx/style.h
+++ b/gfx/style.h
@@ -22,6 +22,7 @@
#define COLOR_BLACK 0
#define COLOR_BLUE 1
#define COLOR_GREEN 2
+#define COLOR_CYAN 3
#define COLOR_RED 4
#define COLOR_YELLOW 6
#define COLOR_WHITE 7
@@ -39,6 +40,7 @@
#define COLOR_DARK_YELLOW 32 /* user-defined */
#define COLOR_LIGHT_GREY 33 /* user-defined, not used by FIG */
#define COLOR_LIGHT_YELLOW 34 /* user-defined */
+#define COLOR_ORANGE 35 /* user-defined */
#define COLOR_COMP_DWG COLOR_RED4
#define COLOR_COMP_DWG_BG COLOR_LIGHT_YELLOW
@@ -56,6 +58,7 @@
#define COLOR_FIELD COLOR_CYAN4
#define COLOR_PIN_NAME COLOR_FIELD
#define COLOR_PIN_NUMBER COLOR_RED4
+#define COLOR_PIN_EXTRA COLOR_ORANGE
#define COLOR_MISSING_FG COLOR_RED
#define COLOR_MISSING_BG COLOR_PINK4
@@ -75,6 +78,7 @@
#define LAYER_HSHEET_BOX 70
#define LAYER_LINES 100
#define LAYER_COMP_DWG 120
+#define LAYER_PIN_EXTRA 150
#define LAYER_COMP_DWG_BG 200
#define WIDTH_WIRE 2
@@ -98,6 +102,7 @@
#define MISSING_HEIGHT 300
#define PIN_R 25 /* radius and feature step */
+#define PIN_EXTRA_R 25 /* feature step */
extern uint32_t color_rgb[];