aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2021-11-23 16:55:37 +0100
committerY. Wang <yw05@forksworld.de>2021-11-23 16:55:37 +0100
commitb065b584bf54cc3c51f396e900fb40853d826f15 (patch)
tree99ec5bb2a55ad068e5a9078a4fa38f0c746194a6 /assets
parentf0ef710cd2dd9dac8d0c496daeda7624b4405db9 (diff)
downloadadvtrains-b065b584bf54cc3c51f396e900fb40853d826f15.tar.gz
advtrains-b065b584bf54cc3c51f396e900fb40853d826f15.tar.bz2
advtrains-b065b584bf54cc3c51f396e900fb40853d826f15.zip
Adjust fill for some graphs; add A5 PDF output
Diffstat (limited to 'assets')
-rw-r--r--assets/manual2/manual.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/assets/manual2/manual.tex b/assets/manual2/manual.tex
index 24f6fe6..5b8e817 100644
--- a/assets/manual2/manual.tex
+++ b/assets/manual2/manual.tex
@@ -7,7 +7,7 @@
\usepackage{amsmath,amssymb,siunitx}
\usepackage[x11names,svgnames]{xcolor}
\usepackage{tikz}
-\usetikzlibrary{arrows,backgrounds,calc}
+\usetikzlibrary{arrows,backgrounds,calc,patterns}
\lstdefinestyle{luastyle}{
language=[5.1]Lua,
@@ -105,7 +105,7 @@ Unlike regular carts in Minetest, tracks can connect in 16 cardinal directions i
0/-1,-1/-2,-1/-1,-2/-1,-1/0,-2/1,-1/1,-1/2
}
\foreach \dx/\dy in \dirs {
- \draw[fill=green,shift={(\dx,\dy)}] (2,2) rectangle +(1,1);
+ \draw[pattern=north east lines,shift={(\dx,\dy)}] (2,2) rectangle +(1,1);
}
\foreach \dx/\dy in \dirs {
\draw[very thick,->] (2.5,2.5) -- +(\dx,\dy);
@@ -113,7 +113,7 @@ Unlike regular carts in Minetest, tracks can connect in 16 cardinal directions i
\node[circle,draw=black,fill=white,text=black] at (2.5,2.5) {A};
\end{centeredtikzpicture}
-In the figure above, the green squares show possible connections from the track at A.
+In the figure above, the filled squares show possible connections from the track at A.
Tracks that are not axis-aligned are sometimes referred to as 30\textdegree{} (although it is technically $\arcsin 0.5$) or 45\textdegree{} tracks. However, the specific meaning of the terms may depend on the context of the discussion.
@@ -122,7 +122,7 @@ The use of 16 cardinal directions instead of four allows the creation of curves
\begin{centeredtikzpicture}
\draw[step=1,gray,very thin] (0,0) grid (6,6);
\foreach \x/\y in {0/0,0/1,1/3,2/4,4/5,5/5} {
- \draw[fill=green] (\x,\y) rectangle +(1,1);
+ \draw[pattern=north east lines] (\x,\y) rectangle +(1,1);
}
\draw[<->,very thick] (0.5,0.5) -- ++(0,1) -- ++(1,2) -- ++(1,1) -- ++(2,1) -- ++(1,0);
\end{centeredtikzpicture}
@@ -140,7 +140,7 @@ To place the track, simply right click the node to place the track on with the t
\draw[step=1,gray!50!white,thin] (-2,0) grid (3,2);
\draw[fill=black!40!gray] (0,1) -- ++(2,0) -- ++(0,1) -- cycle;
\foreach \x/\y/\l in {0/0/B,1/0/,2/1/A}{
- \draw[fill=green] (\x,\y) rectangle +(1,1);
+ \draw[fill=cyan] (\x,\y) rectangle +(1,1);
\node[text=black,shift={(0.5,0.5)}] at (\x,\y) {\l};
}
\node[text=black] at (-1.5,1.5) {P};
@@ -218,7 +218,7 @@ It is also possible to create track layouts without using crossings. Some exampl
5/0,7/1,9/2,11/3,6/3,7/2,8/1,9/0
}
\foreach \x/\y in \squares {
- \draw [fill=green,shift={(-0.5,-0.5)}] (\x,\y) rectangle +(1,1);
+ \draw [pattern=north east lines,shift={(-0.5,-0.5)}] (\x,\y) rectangle +(1,1);
}
\foreach \ax/\ay/\bx/\by in \lines {
\draw [<->, very thick] (\ax,\ay) -- (\bx,\by);