/usr/local/tikz/Common.tikz not found! /usr/local/tikz/Taxist/Ellipsis.tikz not found! \TiKZPath/Taxist/Ellipse/Draw/Curve.tikz not found! SmtC: Show me the Code!
SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

Taxist
Quando eu dou de comer aos pobres
Me chamam de santo
Quando eu pergunto por que eles são pobres
Me chamam de comunista
Dom Helder Câmera

Ellipsis

Foci A(xa,ya) and B(xb,yb):
  • Center: 12(A+B).
  • Ec={PP|  d(A,P)+d(B,P)=2c}, cR
  • d(A,P)<2cd(B,P)<2c
2_Palestras/2019/1_TiKZ/05_Axiomatic/10_Models/02_Taxist/05_Ellipse/Figs/Fig-000000_0.svg
TiKZ Listing: Figs/Fig-000045_0.tikz.tex. PDF   PNG   SVG   ZIP*  
%%! Skeleton File:      Fig.tikz.tex
%%! Destination File:   Fig-000045_0.tikz.tex
%%! Variation Command:  /usr/local/bin/variation Fig.tikz.tex Angle 0 180 37
%%! Generating Command: /usr/local/bin/tikz2svg Fig-000045_0.tikz.tex
%%! n:                  10 of 37
%%! From/to:            0-180
%%! t:                  45.0

%Size and angle of segment. Angle between 0 and pi.
\tikzmath{\L=sqrt(2);};
\tikzmath{\Angle=45.0;};

\input{/usr/local/tikz/Common.tikz}
\input{/usr/local/tikz/Taxist/Ellipsis.tikz}
Numerical comparisons with TeX:
TiKZ Listing: /usr/local/tikz/Taxist/Ellipse/Classify.tikz.tex. PDF   PNG   SVG   ZIP*  
%Cases, classification used by other parts:
%
%   Case 1 (I):    0   < \Angle 90
%   Case 2 (II):  90  < \Angle 180
%
%   Case 10: 0, horisontal
%   Case 11: 90, vertical
%
%Sets \Case to a case number and \CaseText to a text.
%

%Limit: 0 \leq Angle < pi.
\tikzmath{\TINY=0.001;};
\tikzmath{\LIMIT=\TINY;};


%Initial values, default case (90<<180)
\tikzmath{\Case=2;};
\def\CaseText{II};

%0<<90?
\tikzmath{\LIMIT=90;};
\ifthenelse{\lengthtest{ \Angle pt < \LIMIT pt}}{
    \tikzmath{\Case=1;};
    \def\CaseText{I};
}{}

\tikzmath{\ABS=abs(\Angle);};
%Horisontal?
\ifthenelse{\lengthtest{ \ABS pt < \LIMIT pt}}{
    \tikzmath{\Case=10;};
    \def\CaseText{Horisontal};
}{}

\tikzmath{\ABS=abs(\Angle-90);};
%Vertical?
\ifthenelse{\lengthtest{ \ABS pt < \TINY pt}}{
    \tikzmath{\Case=11;};
    \def\CaseText{Vertical};
}{}
Merging colors with TiKZ...
TiKZ Listing: /usr/local/tikz/Taxist/Ellipse/Draw/Curves.tikz.tex. PDF   PNG   SVG   ZIP*  
%Draw the actual Taxist Ellipse


\definecolor{curve1}{rgb}{1,0.5,0}
\definecolor{curve2}{rgb}{0,0,1}

%Calculate color factor
\newcommand{\ColorRel}[2]{
  \tikzmath{\crel=int(round(#2/#1*100));};
}



\tikzmath{\N=10;};
\tikzmath{\C=\L;};
\tikzmath{\CC=2*\L;};
\tikzmath{\dC=(\CC-\C)/\N;};
\foreach \n in {0,1,...,\N}
{
     %Change color
     \ColorRel{\N}{\n}
     \tikzstyle{Taxist_Ellipse}=[color=curve1!\crel!curve2]
     
     \tikzmath{\c=\C+\n*\dC;};
   \input{/usr/local/tikz/Taxist/Ellipse/Draw/Curve.tikz}
}
Messages:
0 secs.