summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-23 03:00:28 +0000
committerNorbert Preining <norbert@preining.info>2019-12-23 03:00:28 +0000
commita1dedaefa2becaafcd09daa0489ec89a84908e34 (patch)
tree0ea567121e62ae07380883d54d5c2c295ecce47f /graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
parent00707dfd6ac16ef1f4dc0cf9512c42f2fd20ad35 (diff)
CTAN sync 201912230300
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex')
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex25
1 files changed, 18 insertions, 7 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
index 724f5ee350..3ccf5abfcb 100644
--- a/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
@@ -30,6 +30,17 @@
\pgfpointorigin
}
}
+%
+% Provision for changing opacity. Only expert use, see the manual.
+%
+\ctikzset{poles/open fill opacity/.initial=1.0}% better not touch it
+\tikzset{open poles opacity/.code={%
+ \ctikzset{poles/open fill opacity=#1}%
+}}
+\ctikzset{poles/full fill opacity/.initial=1.0}% better not touch it
+\tikzset{full poles opacity/.code={%
+ \ctikzset{poles/full fill opacity=#1}%
+}}
%% Full terminal
@@ -65,14 +76,14 @@
\pgfscope
\pgfpathcircle{\pgfpointorigin}{\ctikzvalof{nodes width}*\pgf@circ@Rlen}
\pgfsetcolor{\ctikzvalof{color}}
- \pgfsetfillopacity{1.0}
+ \pgfsetfillopacity{\ctikzvalof{poles/full fill opacity}}% normally 1.0
\pgfusepath{draw,fill}
\endpgfscope
}
}
-%% Empty terminal
+%% Empty round terminal
\pgfdeclareshape{ocirc}{
\anchor{center}{
@@ -117,7 +128,7 @@
\else
\pgfsetfillcolor{\tikz@fillcolor}
\fi
- \pgfsetfillopacity{1.0}
+ \pgfsetfillopacity{\ctikzvalof{poles/open fill opacity}}% normally 1.0
\pgfusepath{draw,fill}
\endpgfscope
@@ -171,7 +182,7 @@
{\pgfpoint{-\pgf@circ@res@temp}{-\pgf@circ@res@temp}}
{\pgfpoint{\pgf@circ@res@temp}{\pgf@circ@res@temp}}
\pgfsetcolor{\ctikzvalof{color}}
- \pgfsetfillopacity{1.0}
+ \pgfsetfillopacity{\ctikzvalof{poles/full fill opacity}}% normally 1.0
\pgfusepath{draw,fill}
\endpgfscope
}
@@ -234,7 +245,7 @@
\else
\pgfsetfillcolor{\tikz@fillcolor}
\fi
- \pgfsetfillopacity{1.0}
+ \pgfsetfillopacity{\ctikzvalof{poles/open fill opacity}}% normally 1.0
\pgfusepath{draw,fill}
\endpgfscope
}
@@ -278,7 +289,7 @@
{\pgfpoint{-\pgf@circ@res@temp}{-\pgf@circ@res@temp}}
{\pgfpoint{\pgf@circ@res@temp}{\pgf@circ@res@temp}}
\pgfsetcolor{\ctikzvalof{color}}
- \pgfsetfillopacity{1.0}
+ \pgfsetfillopacity{\ctikzvalof{poles/full fill opacity}}% normally 1.0
\pgfusepath{draw,fill}
\endpgfscope
}
@@ -331,7 +342,7 @@
\else
\pgfsetfillcolor{\tikz@fillcolor}
\fi
- \pgfsetfillopacity{1.0}
+ \pgfsetfillopacity{\ctikzvalof{poles/open fill opacity}}% normally 1.0
\pgfusepath{draw,fill}
\endpgfscope
}