Created
July 10, 2015 19:42
-
-
Save armanbilge/c7590c388dc9063e21b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{arrows} | |
\usetikzlibrary{arrows.meta} | |
\makeatletter | |
\pgfarrowsdeclare{center*}{center*} | |
{ | |
\pgfarrowsleftextend{+-.5\pgflinewidth} | |
\pgfutil@tempdima=0.4pt% | |
\advance\pgfutil@tempdima by.2\pgflinewidth% | |
\pgfarrowsrightextend{4.5\pgfutil@tempdima} | |
} | |
{ | |
\pgfutil@tempdima=0.4pt% | |
\advance\pgfutil@tempdima by.2\pgflinewidth% | |
\pgfsetdash{}{+0pt} | |
\pgfpathcircle{\pgfqpoint{4.5\pgfutil@tempdima}{0bp}}{4.5\pgfutil@tempdima} | |
\pgfusepathqfillstroke | |
} | |
\pgfarrowsdeclare{centero}{centero} | |
{ | |
\pgfarrowsleftextend{+-.5\pgflinewidth} | |
\pgfutil@tempdima=0.4pt% | |
\advance\pgfutil@tempdima by.2\pgflinewidth% | |
\pgfarrowsrightextend{4.5\pgfutil@tempdima} | |
} | |
{ | |
\pgfutil@tempdima=0.4pt% | |
\advance\pgfutil@tempdima by.2\pgflinewidth% | |
\pgfsetdash{}{+0pt} | |
\pgfpathcircle{\pgfqpoint{4.5\pgfutil@tempdima}{0bp}}{4.5\pgfutil@tempdima} | |
\pgfusepathqstroke | |
} | |
\makeatother | |
\begin{document} | |
\begin{tikzpicture}[line width=0.75mm,scale=0.5] | |
\draw[blue] (0,0) -- (10,10); | |
\draw[blue] (4,0) -- (2,2); | |
\draw[blue] (8,0) -- (4,4); | |
\draw[blue] (12,0) -- (14,2); | |
\draw[blue] (16,0) -- (8,8); | |
\draw[red] (1,0) -- (11,10); | |
\draw[white,-center*] (9,8) -- (9,8); | |
\draw[red,-centero] (17,0) -- (9,8); | |
\draw[white,-center*] (15,2) -- (15,2); | |
\draw[red,-centero] (13,0) -- (15,2); | |
\draw[red] (7,3) -- (14,3); | |
\draw[red,arrows={Latex[scale=1]-}] (10,3) -- (14,3); | |
\draw[red] (10,0) -- (7,3); | |
\draw[white,-center*] (5,4) -- (5,4); | |
\draw[red,-centero] (9,0) -- (5,4); | |
\draw[white,arrows=-center*] (3,2) -- (3,2); | |
\draw[red,arrows=-centero] (4,1) -- (3,2); | |
\node[red, rotate=135] at (4,1) {\Huge\textsf{\textbf{x}}}; | |
\draw[red] (18,0) -- (17,1); | |
\draw[red,center*-] (16,1) -- (17,1); | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment