Coloured legs

This commit is contained in:
Louis Burke 2019-04-19 14:09:33 -04:00
parent 53b19b6cbf
commit 67d2807072
2 changed files with 10 additions and 4 deletions

View file

@ -222,9 +222,9 @@
\begin{document} \begin{document}
\begin{board} \begin{board}
\scoped[shift={(-10.5,3.75)}]{\cardtrackindicator{blue}{Test Text}} \scoped[shift={(-10.5,3.75)}]{\cardtrackindicator{firstleg}{First Leg}}
\scoped[shift={(7.5,3.75)}]{\cardtrackindicator{red}{Test Text The Second}} \scoped[shift={(-1.5,-3.75)},yscale=-1]{\cardtrackindicator{secondleg}{\rotatebox[origin=c]{180}{Second Leg}}}
\scoped[shift={(-1.5,-3.75)},yscale=-1]{\cardtrackindicator{green}{\rotatebox[origin=c]{180}{TTT}}} \scoped[shift={(7.5,3.75)}]{\cardtrackindicator{thirdleg}{Third Leg}}
\track \track
\drawguides \drawguides

View file

@ -25,6 +25,10 @@
\definecolor{health}{HTML}{FF0000} \definecolor{health}{HTML}{FF0000}
\definecolor{risk}{HTML}{000000} \definecolor{risk}{HTML}{000000}
\definecolor{firstleg}{HTML}{9117FF}
\definecolor{secondleg}{HTML}{17FF91}
\definecolor{thirdleg}{HTML}{FF9117}
% Card Type % Card Type
\definecolor{utility}{HTML}{FFFFFF} \definecolor{utility}{HTML}{FFFFFF}
\definecolor{attachment}{HTML}{5FAFCF} \definecolor{attachment}{HTML}{5FAFCF}
@ -159,11 +163,13 @@
\fill [black] (0.725,-0.5) rectangle (0.775,0.5); \fill [black] (0.725,-0.5) rectangle (0.775,0.5);
} }
\newcommand{\leglevel}[1]{\newcommand{\legcolor}{#1}}
\newenvironment{leg} \newenvironment{leg}
{% Begin {% Begin
\noindent\begin{tikzpicture}[x=1cm,y=1cm] \noindent\begin{tikzpicture}[x=1cm,y=1cm]
\fill [black] (0,0) rectangle (6.35,8.89); \fill [black] (0,0) rectangle (6.35,8.89);
\fill[rounded corners=10pt] [white] (0.423333,0.0) rectangle (5.92666,8.4666); \fill[rounded corners=10pt] [\legcolor] (0.423333,0.0) rectangle (5.92666,8.4666);
% Draw the path itself % Draw the path itself
\scoped[shift={(1.675,0.85)},yscale=-1.0]{\straightspace} \scoped[shift={(1.675,0.85)},yscale=-1.0]{\straightspace}