Warning, /graphics/tikzkit/texamples/bending.tex is written in an unsupported language. File is not indexed.

0001 \documentclass[a4paper,10pt]{article}
0002 \usepackage[utf8]{inputenc}
0003 \usepackage[pdftex,active,tightpage]{preview}
0004 \usepackage{tikz}
0005 \PreviewEnvironment{tikzpicture}
0006 
0007 \begin{document}
0008 \thispagestyle{empty}
0009 \begin{tikzpicture}
0010 %   \node[draw, circle, fill=yellow] (a) at (0, 0) {a};
0011 %   \node[draw, circle, fill=blue] (b) at (2, 0) {a};
0012   \draw (0,0) to[bend left=30] (4,0);
0013 
0014   % tikzlibrarytopaths.code.tex
0015   % looseness = 1 (default)
0016   % factor = 0.3915
0017 
0018   % 4 + 4*0.3915*cos(150/180*pi) = 2.6438042
0019   % 4*0.3915*sin(150/180*pi) = 0.738
0020   % 4*0.3915*cos(30/180*pi) = 1.3561958
0021   % 4*0.3915*sin(30/180*pi) = 0.738
0022 
0023 %   \draw[red,very thin] (0,0) .. controls (30:1.6) and (2.614,0.8) .. (4,0);
0024 
0025   \draw[green,very thin] (0,0) .. controls (30:1.6) and (2.6438042,0.783) .. (4,0);
0026   \draw[red,very thin, dashed] (0,0) .. controls (1.3561958,0.783) and (2.614,0.8) .. (4,0);
0027 \end{tikzpicture}
0028 \end{document}
0029