diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2021-09-13 13:08:03 +0200 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2021-09-13 13:08:03 +0200 |
commit | 3d288f1e437611757ee07c84cc03cd70f216f4c2 (patch) | |
tree | d6f111d5bd5dc49bf5c1f12342047e36dfe81382 /cover/matrix.tex | |
parent | div (diff) | |
download | SeminarMatrizen-3d288f1e437611757ee07c84cc03cd70f216f4c2.tar.gz SeminarMatrizen-3d288f1e437611757ee07c84cc03cd70f216f4c2.zip |
various cover variants
Diffstat (limited to '')
-rw-r--r-- | cover/matrix.tex | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/cover/matrix.tex b/cover/matrix.tex index 338435b..8952712 100644 --- a/cover/matrix.tex +++ b/cover/matrix.tex @@ -22,7 +22,9 @@ \fill[color=blue] (0,{-0.3*\h}) rectangle (\w,{2*\h}); -\def\verticalline#1{ +% #1 = x coordinate +% #2 = scale factor +\def\verticalline#1#2{ \pgfmathparse{int(random(0,\h/\vs))*\vs} \xdef\initialheight{\pgfmathresult} \foreach \y in {0,\vs,...,\l}{ @@ -30,18 +32,33 @@ \xdef\farbe{\pgfmathresult} \pgfmathparse{int(random(0,9))} \xdef\zeichen{\pgfmathresult} - \node[color=white!\farbe!blue,opacity={(1-\y/\l)}] + \node[color=white!\farbe!blue,opacity={(1-\y/\l)},scale=#2] %\node[color=white!\farbe!blue] - at (#1,{\initialheight+\y}) {\tt\zeichen}; + at (#1,{\initialheight+\y*(#2)}) {\tt\zeichen}; + } +} + +% #1 = width +% #2 = scalefactor +\def\verticallines#1#2{ + \pgfmathparse{int(#1/(#2*\s))} + \xdef\xlimit{\pgfmathresult} + \foreach \x in {0,1,...,\xlimit}{ + \pgfmathparse{\x*\s*(#2)} + \xdef\X{\pgfmathresult} + \verticalline{\X}{#2} } } \begin{scope} \clip (0,{-0.3*\h}) rectangle (\w,{2*\h}); +\def\W{3} -\foreach \x in {0,\s,...,\w}{ - \verticalline{\x} -} +%\verticallines{\W}{0.5} +%\verticallines{\W}{0.7} +\verticallines{\W}{1.0} +%\verticallines{\W}{1.4} +%\verticallines{\W}{2} \end{scope} |