TikZ fill using draw color
up vote
1
down vote
favorite
The following code uses a decorator to add an arrow tip to an edge. Logically, the tip is part of the edge, and so should be colored with the line-color. However, because the tip is rendered using fill
, it takes its color from the fill
parameter. How can I make the color to respond to draw=red
, and also not respond to fill=red
?
documentclass[tikz, crop]{standalone}
usetikzlibrary{decorations.markings}
begin{document}
begin{tikzpicture}
tikzset{
pe/.style={
draw=none,
decoration={
markings, mark=at position 0.8 with {%
fill (0, 0.5pt) -- ++ (-0.25, 0.075) -- ++ (0, -0.075) -- cycle;
}
},
postaction=decorate
}
}
draw[pe, draw=red] (0, 0) -- (1, 0);
end{tikzpicture}
end{document}
tikz-pgf tikz-styles tikz-decorations
add a comment |
up vote
1
down vote
favorite
The following code uses a decorator to add an arrow tip to an edge. Logically, the tip is part of the edge, and so should be colored with the line-color. However, because the tip is rendered using fill
, it takes its color from the fill
parameter. How can I make the color to respond to draw=red
, and also not respond to fill=red
?
documentclass[tikz, crop]{standalone}
usetikzlibrary{decorations.markings}
begin{document}
begin{tikzpicture}
tikzset{
pe/.style={
draw=none,
decoration={
markings, mark=at position 0.8 with {%
fill (0, 0.5pt) -- ++ (-0.25, 0.075) -- ++ (0, -0.075) -- cycle;
}
},
postaction=decorate
}
}
draw[pe, draw=red] (0, 0) -- (1, 0);
end{tikzpicture}
end{document}
tikz-pgf tikz-styles tikz-decorations
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
The following code uses a decorator to add an arrow tip to an edge. Logically, the tip is part of the edge, and so should be colored with the line-color. However, because the tip is rendered using fill
, it takes its color from the fill
parameter. How can I make the color to respond to draw=red
, and also not respond to fill=red
?
documentclass[tikz, crop]{standalone}
usetikzlibrary{decorations.markings}
begin{document}
begin{tikzpicture}
tikzset{
pe/.style={
draw=none,
decoration={
markings, mark=at position 0.8 with {%
fill (0, 0.5pt) -- ++ (-0.25, 0.075) -- ++ (0, -0.075) -- cycle;
}
},
postaction=decorate
}
}
draw[pe, draw=red] (0, 0) -- (1, 0);
end{tikzpicture}
end{document}
tikz-pgf tikz-styles tikz-decorations
The following code uses a decorator to add an arrow tip to an edge. Logically, the tip is part of the edge, and so should be colored with the line-color. However, because the tip is rendered using fill
, it takes its color from the fill
parameter. How can I make the color to respond to draw=red
, and also not respond to fill=red
?
documentclass[tikz, crop]{standalone}
usetikzlibrary{decorations.markings}
begin{document}
begin{tikzpicture}
tikzset{
pe/.style={
draw=none,
decoration={
markings, mark=at position 0.8 with {%
fill (0, 0.5pt) -- ++ (-0.25, 0.075) -- ++ (0, -0.075) -- cycle;
}
},
postaction=decorate
}
}
draw[pe, draw=red] (0, 0) -- (1, 0);
end{tikzpicture}
end{document}
tikz-pgf tikz-styles tikz-decorations
tikz-pgf tikz-styles tikz-decorations
asked 3 mins ago
kaba
24517
24517
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464062%2ftikz-fill-using-draw-color%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown