TikZ arrow tip is drawn with two colors











up vote
4
down vote

favorite
1












This is my code (ConTeXt, but I think that's not relevant here):



usemodule[tikz]
usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

tikzset{
arr/.style = { -{Stealth[width=2mm]} },
garr/.style = {arr, dashed, draw=green},
cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
}

starttext
starttikzpicture
node[cflow] (A) {A};
node[cflow,right=of A] (E) {E};
node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

path[arr]
(A) edge (E)
(E) edge (B);
path[garr]
(A) edge[bend right] (B);
stoptikzpicture
stoptext


The result is:





Why is the arrow head drawn with both green and black and why do they have different sizes?










share|improve this question


























    up vote
    4
    down vote

    favorite
    1












    This is my code (ConTeXt, but I think that's not relevant here):



    usemodule[tikz]
    usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

    tikzset{
    arr/.style = { -{Stealth[width=2mm]} },
    garr/.style = {arr, dashed, draw=green},
    cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
    }

    starttext
    starttikzpicture
    node[cflow] (A) {A};
    node[cflow,right=of A] (E) {E};
    node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

    path[arr]
    (A) edge (E)
    (E) edge (B);
    path[garr]
    (A) edge[bend right] (B);
    stoptikzpicture
    stoptext


    The result is:





    Why is the arrow head drawn with both green and black and why do they have different sizes?










    share|improve this question
























      up vote
      4
      down vote

      favorite
      1









      up vote
      4
      down vote

      favorite
      1






      1





      This is my code (ConTeXt, but I think that's not relevant here):



      usemodule[tikz]
      usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

      tikzset{
      arr/.style = { -{Stealth[width=2mm]} },
      garr/.style = {arr, dashed, draw=green},
      cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
      }

      starttext
      starttikzpicture
      node[cflow] (A) {A};
      node[cflow,right=of A] (E) {E};
      node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

      path[arr]
      (A) edge (E)
      (E) edge (B);
      path[garr]
      (A) edge[bend right] (B);
      stoptikzpicture
      stoptext


      The result is:





      Why is the arrow head drawn with both green and black and why do they have different sizes?










      share|improve this question













      This is my code (ConTeXt, but I think that's not relevant here):



      usemodule[tikz]
      usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

      tikzset{
      arr/.style = { -{Stealth[width=2mm]} },
      garr/.style = {arr, dashed, draw=green},
      cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
      }

      starttext
      starttikzpicture
      node[cflow] (A) {A};
      node[cflow,right=of A] (E) {E};
      node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

      path[arr]
      (A) edge (E)
      (E) edge (B);
      path[garr]
      (A) edge[bend right] (B);
      stoptikzpicture
      stoptext


      The result is:





      Why is the arrow head drawn with both green and black and why do they have different sizes?







      tikz-pgf color tikz-arrows






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 30 at 12:03









      flyx

      902614




      902614






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          According to page 190 of the manual, stealth arrows are built according to a quadrilateral.




          The < color > will apply both to any drawing and filling operations
          used to construct the path. For instance, even though the Stealth
          arrow tips looks like a filled quadrilateral, it is actually
          constructed by drawing a quadrilateral and then filling it in the same
          color as the drawing (see the fill option below to see the
          difference).




          But if you specify a color for the arrow with the draw option, it is only its border that takes on this color. For it to fill green, it must also be filled with green.



          garr/.style = {arr, dashed,draw=green,fill=green},


          Here, it is enough to indicate the color without specifying draw for it to also fill the arrow.



          garr/.style = {arr, dashed,green},


          draw-fill



          here a solution with PDFLatex (I don't use Context, but it's the same).



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

          tikzset{
          arr/.style = { -{Stealth[width=2mm]} },
          garr/.style = {arr, dashed,green},
          cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
          }
          begin{document}
          %starttext
          begin{tikzpicture}
          node[cflow] (A) {A};
          node[cflow,right=of A] (E) {E};
          node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

          path[arr]
          (A) edge (E)
          (E) edge (B);
          path[garr]
          (A) edge[bend right] (B);
          end{tikzpicture}
          %stoptext

          end{document}


          Translated with www.DeepL.com/Translator






          share|improve this answer





















          • Thanks! I don't even remember how I ended up using draw=green when just green suffices.
            – flyx
            Nov 30 at 12:42










          • There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
            – AndréC
            Nov 30 at 12:50











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462552%2ftikz-arrow-tip-is-drawn-with-two-colors%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          According to page 190 of the manual, stealth arrows are built according to a quadrilateral.




          The < color > will apply both to any drawing and filling operations
          used to construct the path. For instance, even though the Stealth
          arrow tips looks like a filled quadrilateral, it is actually
          constructed by drawing a quadrilateral and then filling it in the same
          color as the drawing (see the fill option below to see the
          difference).




          But if you specify a color for the arrow with the draw option, it is only its border that takes on this color. For it to fill green, it must also be filled with green.



          garr/.style = {arr, dashed,draw=green,fill=green},


          Here, it is enough to indicate the color without specifying draw for it to also fill the arrow.



          garr/.style = {arr, dashed,green},


          draw-fill



          here a solution with PDFLatex (I don't use Context, but it's the same).



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

          tikzset{
          arr/.style = { -{Stealth[width=2mm]} },
          garr/.style = {arr, dashed,green},
          cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
          }
          begin{document}
          %starttext
          begin{tikzpicture}
          node[cflow] (A) {A};
          node[cflow,right=of A] (E) {E};
          node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

          path[arr]
          (A) edge (E)
          (E) edge (B);
          path[garr]
          (A) edge[bend right] (B);
          end{tikzpicture}
          %stoptext

          end{document}


          Translated with www.DeepL.com/Translator






          share|improve this answer





















          • Thanks! I don't even remember how I ended up using draw=green when just green suffices.
            – flyx
            Nov 30 at 12:42










          • There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
            – AndréC
            Nov 30 at 12:50















          up vote
          5
          down vote



          accepted










          According to page 190 of the manual, stealth arrows are built according to a quadrilateral.




          The < color > will apply both to any drawing and filling operations
          used to construct the path. For instance, even though the Stealth
          arrow tips looks like a filled quadrilateral, it is actually
          constructed by drawing a quadrilateral and then filling it in the same
          color as the drawing (see the fill option below to see the
          difference).




          But if you specify a color for the arrow with the draw option, it is only its border that takes on this color. For it to fill green, it must also be filled with green.



          garr/.style = {arr, dashed,draw=green,fill=green},


          Here, it is enough to indicate the color without specifying draw for it to also fill the arrow.



          garr/.style = {arr, dashed,green},


          draw-fill



          here a solution with PDFLatex (I don't use Context, but it's the same).



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

          tikzset{
          arr/.style = { -{Stealth[width=2mm]} },
          garr/.style = {arr, dashed,green},
          cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
          }
          begin{document}
          %starttext
          begin{tikzpicture}
          node[cflow] (A) {A};
          node[cflow,right=of A] (E) {E};
          node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

          path[arr]
          (A) edge (E)
          (E) edge (B);
          path[garr]
          (A) edge[bend right] (B);
          end{tikzpicture}
          %stoptext

          end{document}


          Translated with www.DeepL.com/Translator






          share|improve this answer





















          • Thanks! I don't even remember how I ended up using draw=green when just green suffices.
            – flyx
            Nov 30 at 12:42










          • There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
            – AndréC
            Nov 30 at 12:50













          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          According to page 190 of the manual, stealth arrows are built according to a quadrilateral.




          The < color > will apply both to any drawing and filling operations
          used to construct the path. For instance, even though the Stealth
          arrow tips looks like a filled quadrilateral, it is actually
          constructed by drawing a quadrilateral and then filling it in the same
          color as the drawing (see the fill option below to see the
          difference).




          But if you specify a color for the arrow with the draw option, it is only its border that takes on this color. For it to fill green, it must also be filled with green.



          garr/.style = {arr, dashed,draw=green,fill=green},


          Here, it is enough to indicate the color without specifying draw for it to also fill the arrow.



          garr/.style = {arr, dashed,green},


          draw-fill



          here a solution with PDFLatex (I don't use Context, but it's the same).



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

          tikzset{
          arr/.style = { -{Stealth[width=2mm]} },
          garr/.style = {arr, dashed,green},
          cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
          }
          begin{document}
          %starttext
          begin{tikzpicture}
          node[cflow] (A) {A};
          node[cflow,right=of A] (E) {E};
          node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

          path[arr]
          (A) edge (E)
          (E) edge (B);
          path[garr]
          (A) edge[bend right] (B);
          end{tikzpicture}
          %stoptext

          end{document}


          Translated with www.DeepL.com/Translator






          share|improve this answer












          According to page 190 of the manual, stealth arrows are built according to a quadrilateral.




          The < color > will apply both to any drawing and filling operations
          used to construct the path. For instance, even though the Stealth
          arrow tips looks like a filled quadrilateral, it is actually
          constructed by drawing a quadrilateral and then filling it in the same
          color as the drawing (see the fill option below to see the
          difference).




          But if you specify a color for the arrow with the draw option, it is only its border that takes on this color. For it to fill green, it must also be filled with green.



          garr/.style = {arr, dashed,draw=green,fill=green},


          Here, it is enough to indicate the color without specifying draw for it to also fill the arrow.



          garr/.style = {arr, dashed,green},


          draw-fill



          here a solution with PDFLatex (I don't use Context, but it's the same).



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{positioning,fit,shapes,calc,arrows.meta,decorations.markings}

          tikzset{
          arr/.style = { -{Stealth[width=2mm]} },
          garr/.style = {arr, dashed,green},
          cflow/.style={draw=black,ellipse,text centered,minimum width=1cm}
          }
          begin{document}
          %starttext
          begin{tikzpicture}
          node[cflow] (A) {A};
          node[cflow,right=of A] (E) {E};
          node[cflow,below right=.35cm and 1.4cm of E] (B) {B};

          path[arr]
          (A) edge (E)
          (E) edge (B);
          path[garr]
          (A) edge[bend right] (B);
          end{tikzpicture}
          %stoptext

          end{document}


          Translated with www.DeepL.com/Translator







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 30 at 12:33









          AndréC

          6,99211340




          6,99211340












          • Thanks! I don't even remember how I ended up using draw=green when just green suffices.
            – flyx
            Nov 30 at 12:42










          • There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
            – AndréC
            Nov 30 at 12:50


















          • Thanks! I don't even remember how I ended up using draw=green when just green suffices.
            – flyx
            Nov 30 at 12:42










          • There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
            – AndréC
            Nov 30 at 12:50
















          Thanks! I don't even remember how I ended up using draw=green when just green suffices.
          – flyx
          Nov 30 at 12:42




          Thanks! I don't even remember how I ended up using draw=green when just green suffices.
          – flyx
          Nov 30 at 12:42












          There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
          – AndréC
          Nov 30 at 12:50




          There are nearly a thousand different keys with TikZ, so the extraordinary thing would be to not forget anything:-)
          – AndréC
          Nov 30 at 12:50


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462552%2ftikz-arrow-tip-is-drawn-with-two-colors%23new-answer', 'question_page');
          }
          );

          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







          Popular posts from this blog

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei