From b6bebdc03066e513efbbb5ff9424681bbcceff0c Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@chimrod.com>
Date: Tue, 1 Dec 2020 21:32:20 +0100
Subject: Added a new model, and did some factorisation

---
 model_1/resources/10_levels.tex | 73 -----------------------------------------
 1 file changed, 73 deletions(-)
 delete mode 100755 model_1/resources/10_levels.tex

(limited to 'model_1/resources/10_levels.tex')

diff --git a/model_1/resources/10_levels.tex b/model_1/resources/10_levels.tex
deleted file mode 100755
index d2c8682..0000000
--- a/model_1/resources/10_levels.tex
+++ /dev/null
@@ -1,73 +0,0 @@
-\newcommand{\DUrolelevel}[1]{%
-  \resizebox{\linewidth}{!}{%
-  \begin{tikzpicture}
-    \draw (0,0) -- (5,0);
-    \fill(#1,-.1) rectangle ($ (#1,0) + (0.1, .1) $);
-  \end{tikzpicture}
-  }
-}
-
-\ifdefinedcolor{sidecolor}{%
-  \colorlet{patterncolor}{sidecolor}
-}{%
-  \colorlet{patterncolor}{textsidecolor}
-}
-
-\ifdefinedcolor{backsidecolor}{%
-  \colorlet{emptycolor}{backsidecolor}
-}{%
-  \colorlet{emptycolor}{white}
-}
-
-\usetikzlibrary{shapes.geometric,calc}
-\newcommand\starScore[2]{
-\pgfmathsetmacro\pgfxa{#1+1}
-\tikzstyle{scorestars}=[star, star points=5, star point ratio=2.25, draw,inner sep=0.15em,anchor=outer point 3]
-\begin{tikzpicture}[baseline]
-  \foreach \i in {1,...,#2} {
-    \pgfmathparse{(\i<=#1?"patterncolor":"emptycolor")}
-    \edef\starcolor{\pgfmathresult}
-    \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor]  {};
-   }
-   \pgfmathparse{(#1>int(#1)?int(#1+1):0}
-   \let\partstar=\pgfmathresult
-   \ifnum\partstar>0
-     \pgfmathsetmacro\starpart{#1-(int(#1))}
-     \path [clip] ($(star\partstar.outer point 3)!(star\partstar.outer point 2)!(star\partstar.outer point 4)$) rectangle 
-    ($(star\partstar.outer point 2 |- star\partstar.outer point 1)!\starpart!(star\partstar.outer point 1 -| star\partstar.outer point 5)$);
-     \fill (\partstar*1em,0) node[scorestars,fill=patterncolor]  {};
-   \fi
-
-,\end{tikzpicture}
-}
-
-
-\newcommand\roundscore[2]{
-\pgfmathsetmacro\pgfxa{#1+1}
-\tikzstyle{scorestars}=[circle, draw, inner sep=0.15em,anchor=west]
-\begin{tikzpicture}[baseline]
-  \foreach \i in {1,...,#2} {
-    \pgfmathparse{(\i<=#1?"blue!70":"lightgray")}
-    \edef\starcolor{\pgfmathresult}
-    \draw (\i*1em,0) node[name=star\i,scorestars,fill=\starcolor]  {};
-   }
-  \pgfmathparse{(#1>int(#1)?int(#1+1):0}
-  \let\partstar=\pgfmathresult
-  \ifnum\partstar>0
-    \pgfmathsetmacro\starpart{#1-(int(#1))}
-    \path [clip] (star\partstar.north west) rectangle 
-    ($(star\partstar.south west)!\starpart!(star\partstar.south east)$);
-    \fill (\partstar*1em,0) node[scorestars,fill=blue!70]  {};
-  \fi,
-
-\end{tikzpicture}
-}
-
-\newcommand{\DUrolestar}[1]{%
-  \resizebox{\linewidth}{!}{%
-  \starScore{#1}{5}
-  }
-}
-
-
-
-- 
cgit v1.2.3

