Debian Codegraph @

texmf-dist/doc/latex/pgf-go/en/pgfgo-keystone.tex

raw
1 \section{The keystone}
2
3 \subsection{The \texttt{\textbackslash let} Game}
4
5 To enable the use of the macros |\mark| and |\marks|, these primitives have been reassigned to |\pgfgo_old_mark| and |\pgfgo_old_marks|, respectively. This is done to avoid conflicts with previous definitions and ensure that the new functionalities of the \pgfgoname\ package can be seamlessly integrated into existing documents. In practice, if a user needs to access the original versions, they can still do so using the renamed commands.
6
7 \subsection{Configuration}
8
9 The macro |\pgfgoset{...}| allows defining general configurations for the package. It is equivalent to |\keys_set:nn{pgfgo}{...}|, meaning it uses the LaTeX3 key system to set options in a structured and hierarchical manner. This macro is particularly useful for customizing the package's global behavior, such as the appearance of the board, stones, or moves, without needing to repeat configurations in each individual environment. For example, a user could define custom colors for players or adjust the board's design to apply to all diagrams in the document. It also serves as a gateway to direct formatting.\footnote{Use with discretion\dots unlike footnotes.}
10
11 \begin{command}{\pgfgoset\marg{options}}
12 \end{command}
13
14 \begin{key}{/pgfgo/goban = \meta{goban options}}
15 Sets general options for the board. This includes properties such as size, background color, visibility of grid lines, or coordinate labels. For example, it can be used to create partial boards or modify the visual style of the border.
16 \end{key}
17
18 \begin{key}{/pgfgo/stone = \meta{stone options}}
19 Defines general options for stones, such as their fill color, outline, or default markings. It is useful for establishing a consistent style across all stones in a document (neutral, white, or black).
20 \end{key}
21
22 %\begin{key}{/pgfgo/move = \meta{move options}}
23 % Sets general options for moves, such as color or automatic labeling.
24 %\end{key}
25
26 %\begin{key}{/pgfgo/mark = \meta{mark options}}
27 % Sets general options for markings, allowing the definition of default shapes (circles, triangles, etc.) or colors to highlight specific positions on the board.
28 %\end{key}
29
30 \begin{key}{/pgfgo/use i = \meta{boolean} (default true)}
31 Allows deciding whether or not to use the "I" label on the board. By default, it is enabled ("true"), meaning coordinates include the letter "I". If disabled ("false"), the system skips this letter and jumps directly from "H" to "J", which is common in certain Go game representations.
32 \end{key}
33
34 \begin{key}{/pgfgo/players = \meta{players options}}
35 Allows defining options for each player (including neutral ones). This \emph{key} acts as a container encompassing specific configurations for black, white, and neutral players, facilitating customization based on the user's rules or preferences. All available options and how to customize stone styles will be detailed in another section.
36 \end{key}
37
38 \begin{codeexample}[]
39 \pgfgoset{
40 goban = {
41 background = {
42 fill = {color = pgfgo},
43 line = false},
44 grid = {line = {color = white}}},
45 players = {
46 black = {
47 stone = {
48 line = {color = magenta},
49 fill = {color = blue!50!black}}},
50 white = {
51 stone = {line = {color = blue}},
52 mark = {line = {color = orange}}
53 }
54 }
55 }
56
57 \begin{goban}[3]
58 \stone[black] {A1}
59 \stone[white, mark = {triangle}] {A2}
60 \end{goban}
61
62 \begin{goban}[4]
63 \stone[black] {A2}
64 \stones[white, mark = {circle}] {B2,A3}
65 \end{goban}
66 \end{codeexample}
67
68 Subsequent |goban| environments inherit these configurations, although they can be overridden locally if necessary.
69
70 \subsection{Coordinate Syntax}
71 \label{subsec:coordinate-syntax}
72
73 One feature that distinguishes \pgfgoname\ from other packages is the ability to input coordinates using various syntaxes, offering flexibility to represent positions on the board intuitively.
74 \begin{itemize}
75 \item Multiple entries can be separated by commas.
76 \item Stones can be removed by adding a subtractive group after a semicolon («;»).
77 \end{itemize}
78
79 However, for performance and consistency reasons, some freedoms that were initially unrestricted have been limited. For example, to refer to an intersection, the alphabetical coordinate must be written in uppercase and without spaces. Thus, the B5 intersection must be entered as |B5|, not as |B 5|, |B 5|, or |b5|, since spaces between the letter and number are invalid in this context. Restrictions will be explained in each case.
80
81 When \pgfgoname has to read the coordinate argument, it may encounter something like this:
82 \begin{center}
83 |\stones{|{\color{red}|<item>, <item>, |\dots;} {\color{blue} |<item>, <item>, |\dots; }{\color{red} \dots}|}|
84 \end{center}
85
86 The first thing it will try to do is split the argument at the |;| and build two groups: the additive group and the subtractive group. The additive group is responsible for adding stones using our syntax. The subtractive group is responsible for removing them. These groups alternate automatically when a |;| is placed. This is explained in more detail in the corresponding subsection. If no |;| is placed, \pgfgoname will add all the stones to the additive group. Multiple stones or multiple groups separated by |,| can be added. Together, all this provides an interface to create complex groups with few \emph{tokens}:
87
88 \begin{codeexample}[width=0pt]
89 \pgfgouseprofile{pgfgosmooth}
90
91 \begin{goban}[17, partial = {from = A1 to Q5}, label = {at = {north, west}}]
92 \stones[b]{*;B,D,H,L,Q2,P,F2:4,J2rK5,N1:2,N4;B3}
93 \end{goban}
94 \end{codeexample}
95
96
97
98
99
100 \def\sssseccion#1{\vskip0.5em\noindent\textbf{#1}\par}
101 \subsubsection{Stone Groups}
102
103
104 \sssseccion{All the stones on the board (\emph{Why not?})}
105
106 Adds all the \textbf{visible} intersections of the board to the corresponding group. That is, if it is a partial board, only those corresponding to the visible region will be added. It is important to clarify this in case it is used in combination with |remember|. Its syntax is |*|.
107
108 \begin{codeexample}[]
109 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
110
111 \begin{goban}[3, label = {at = {south, west}}]
112 \stones[b]{*}
113 \end{goban}
114 \end{codeexample}
115
116
117
118 \sssseccion{Intersection}
119
120 Intersections are specified by indicating the letter followed by the number, with no spaces between the alphabetic and numeric components.
121
122 \begin{codeexample}[]
123 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
124
125 \begin{goban}[label = {at = {south, west}}]
126 \stones[b]{C2,D3}
127 \stone[w]{B4}
128 \stone[w]{B 3} % Not recognized because it has a space.
129 \end{goban}
130 \end{codeexample}
131
132 In the example, |B 3| is not recognized due to the space, while |B4| is correctly drawn as a white stone.
133
134
135 \sssseccion{Vertical or Horizontal Lines}
136
137 Lines are groups of vertical or horizontal stones implicitly delimited by the size of the board.
138
139 \begin{itemize}
140 \item For horizontal lines, the syntax is |L|.
141 \item For vertical lines, the syntax is |N|.
142 \end{itemize}
143
144 \begin{codeexample}[width=6cm]
145 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
146
147 \begin{goban}
148 \stones[b]{B2,B3,B4}
149 \stones[fill = {color = red}]{D}
150 \end{goban}
151
152 \begin{goban}
153 \stones[b]{B2,C2,D2}
154 \stones[fill = {color = blue}]{4}
155 \end{goban}
156
157 \begin{goban}
158 % Adding lines C and 3. Then removing C3.
159 \stones[fill = {color = orange}]{C, 3; C3} % NOTE: C,3 != C3.
160 \end{goban}
161 \end{codeexample}
162
163
164 \sssseccion{Segments}
165
166 Segments are explicitly delimited groups of vertical or horizontal stones. Since they are unidirectional (either vertical or horizontal), one of their coordinates remains constant and does not need to be repeated; only the range of the other variable is specified.
167
168 \begin{itemize}
169 \item For horizontal segments, the syntax is |L:LN| or |L:L N|.
170 \item For vertical segments, the syntax is |LN:N| or |L N:N|.
171 \end{itemize}
172
173 \begin{codeexample}[width=6cm]
174 \pgfgoset{goban = {5, partial = {from = B2 to D4}}}
175
176 \begin{goban}
177 \stones[b]{B2,B3,B4}
178 \stones[w]{C2,D2}
179 \end{goban}
180
181 \begin{goban}
182 \stones[b]{B2:4}
183 \stones[w]{C:D2}
184 \end{goban}
185
186 \begin{goban}
187 \stones[b]{B 2:4} % Spaces work between distinct elements.
188 \stones[w]{C:D 2}
189 \end{goban}
190 \end{codeexample}
191
192 Here, |B2:4| represents a horizontal segment from B2 to B4, while |C:D2| indicates a horizontal segment from C2 to D2.
193
194 \begin{codeexample}[width=6cm]
195 \begin{goban}[label = {at = all}]
196 \stones[fill = {color = red}]{A:E5}
197 \stones[fill = {color = blue}]{H9:2}
198 \stones[fill = {color = orange}]{E:A2}
199 \stones[fill = {color = magenta}]{A:D7, A:C9} % Can be combined.
200 \end{goban}
201 \end{codeexample}
202
203 \sssseccion{Rectangle: An Artificial Consequence}
204
205 The segment syntax allows creating ranges between coordinates to insert stones. I found it useful to extend it to include two ranges, offering a first approximation to rectangles (though it’s not my favorite method, here it is). In this case, the syntax is |L:L N:N| or |L:LN:N|.
206
207 \begin{codeexample}[width=6cm]
208 \begin{goban}[label = {at = all}]
209 \stones[fill = {color = red}]{A:E 7:8} % Space is not mandatory.
210 \stones[fill = {color = blue}]{I:G 9:2}
211 \stones[fill = {color = orange}]{A:B 2:4, F:D 1:3}
212 \end{goban}
213 \end{codeexample}
214
215 For example, |A:E 7:8| creates a rectangle spanning columns A to E in rows 7 and 8, while |I:G 9:2| descends from I9 to G2. Although functional, this syntax can be less intuitive, leading to more specific operators we’ll see later.
216
217 So far, we’ve covered commands for intersections that cannot be combined with others in the same instruction and therefore \textbf{must} be separated by commas. Now, we’ll explore commands that can be chained together, offering greater flexibility for complex patterns.
218
219 \sssseccion{Horizontal--Vertical and Vertical--Horizontal}
220
221 Given two intersections that are neither vertically nor horizontally aligned, these commands generate the intersections connecting the first to the second via a "horizontal--vertical" or "vertical--horizontal" path. This may remind you of the TikZ \verb+-|+ operator, from which I borrowed the idea. The syntax is \verb+LN -| LN+ (for the first case) or \verb+LN |- LN+ (for the second), with or without spaces. These commands, along with the next one, can be chained to form ladders or paths typical of the Manhattan metric.
222
223 \begin{codeexample}[width=6cm]
224 \begin{goban}[label = {at = all}]
225 \stones[fill = {color = red}]{A1 -| D3}
226 \stones[fill = {color = blue}]{D4 -| A2}
227 \stones[fill = {color = orange}] {A9 -| C7 -| G5} % Chained.
228 \stones[fill = {color = magenta}] {F1 |- I3 -| E4} % Try to guess.
229 \end{goban}
230 \end{codeexample}
231
232 In this example, \verb+A1 -| D3+ goes horizontally from A1 to D1 and then vertically to D3.
233
234 \sssseccion{Horizontal or Vertical Line}
235
236 Given two intersections aligned vertically or horizontally, this operator connects them with a straight line of stones. Its syntax is |LN -- LN|. It can be chained with the previous two commands to form more elaborate patterns. If the intersections are not aligned, the operator draws nothing (who knows, maybe in the future it will generate ladders ;)).
237
238 \begin{codeexample}[width=6cm]
239 \begin{goban}[label = {at = all}]
240 \stones[fill = {color = red}]{A1 -- A5}
241 \stones[fill = {color = blue}] {A1 -- D1}
242 \stones[fill = {color = magenta}] {A6 -- B9} % Doesn’t draw because they’re not aligned.
243 \stones[fill = {color = orange}] {I9 -| F6 -- I6} % Chained.
244 \end{goban}
245 \end{codeexample}
246
247 Here, |A1 -- A5| draws a vertical line, while \verb+I9 -| F6 -- I6+ combines a "horizontal--vertical" path with an additional horizontal line.
248
249 Beware! \verb+A1 -- D1 -| F3+ is a permitted chain, while \verb+A:D1 -| F3+ is not, because |:| is not a chain operator. This might change in future versions of the package.
250
251 \sssseccion{Filled and Empty Rectangles}
252
253 The previous rectangle syntax |L:L N:N| is unintuitive and more of a legacy of bounded segments. Therefore, there are two more direct operators for creating rectangles: |R| and |r|. The difference is that |R| generates a filled rectangle, while |r| only draws its outline. Given two diametrically opposite vertices of the rectangle, the syntax is |LN R LN| or |LN r LN|. Although spaces are not currently mandatory, I recommend using them for better readability.
254
255 \begin{codeexample}[width=6cm]
256 \begin{goban}[label = {at = all}]
257 \stones[fill = {color = red}]{A1 R D3}
258 \stones[fill = {color = blue}] {A5 r D8}
259 \stones[fill = {color = orange}] {I8 r G4, H6} % It’s alive!
260 \end{goban}
261 \end{codeexample}
262
263 For example, |A1 R D3| fills a rectangle from A1 to D3, while |A5 r D8| draws only the border of a larger rectangle.
264
265 Rectangles are also chain operators and can be used as such to create more complex patterns.
266
267 \begin{codeexample}[width=6cm]
268 \begin{goban}[label = {at = all}]
269 \stones[fill = {color = orange}] {I8 r G6 r I4} % You guess.
270 \marks[sequence]{I8,G6,I4}
271 \stones[fill = {color = blue!20}] {A1 R E3 r A6 |- E9 -- E8} % Wow!
272 \marks[sequence]{A1,E3,A6,E9,E8}
273 \end{goban}
274 \end{codeexample}
275
276 In this case, |I8 r G6 r I4| chains two outline rectangles, while \verb+A1 R E3 r A6 |- E9 -- E8+ combines a filled rectangle, an outline, a "vertical--horizontal" path, and a line, showcasing the power of chaining.
277
278 \subsubsection{Additive and Subtractive Groups}
279
280 Suppose we want to draw the following diagram:
281
282 \begin{figure}[H]
283 \centering
284 \begin{goban}
285 \stones[b]{A1 R E6; C6 |- E3, A1:2;}
286 \end{goban}
287 \end{figure}
288
289 This can be achieved with the operators already seen, breaking the pattern into several parts:
290
291 \begin{codeexample}[width=6cm]
292 \begin{goban}[label = {at = all}]
293 \stones[fill = {color = orange}] {A6 R B3, B2 R E1, D4 R E6}
294 \end{goban}
295 \end{codeexample}
296
297 But we could also imagine starting from a complete rectangle from which we’ve removed the marked stones, offering a more conceptual perspective:
298
299 \begin{figure}[H]
300 \centering
301 \begin{goban}
302 \stones[b]{A1 R E6}
303 \marks[cross, line = {color = white}]{C6 |- E3, A1:2}
304 \end{goban}
305 \end{figure}
306
307 This is what additive and subtractive groups are about. An additive group adds intersections to the list, while a subtractive group removes them. By default, commands always begin processing additive groups, which explains why they draw stones directly. In \pgfgoname, we can switch between both types using |;|.
308
309 \begin{codeexample}[width=6cm]
310 \begin{goban}[label = {at = all}, partial = {from = A1 to E6}]
311 \stones[b]{A1 R E6} % Additive group.
312 \end{goban}
313
314 \begin{goban}[label = {at = all}, partial = {from = A1 to E6}]
315 \stones[b]{A1 R E6; A 1:2} % Additive group; subtractive group.
316 \end{goban}
317
318 \begin{goban}[label = {at = all}, partial = {from = A1 to E6}]
319 \stones[b]{A1 R E6; A 1:2, C6 |- E3} % Additive group; subtractive group.
320 \end{goban}
321 \end{codeexample}
322
323 In this sequence, a full rectangle is drawn first (|A1 R E6|), then the horizontal segment |A1:2| is removed, and finally, the path \verb+C6 |- E3+ is subtracted. This results in the same diagram as the initial example but with a more compact approach.
324
325 The advantage of this system is that it allows adjustments when needed. Sometimes, an additive pattern is ideal except for one or two stones; in those cases, we can remove them with a subtractive group without redesigning everything.
326
327 \begin{codeexample}[width=6cm]
328 \begin{goban}[label = {at = all}]
329 \stones[b]{A1 R E6; B:D 5, C2}
330 \end{goban}
331 \end{codeexample}
332
333 Here, |B:D 5| removes a horizontal segment in row 5, and |C2| removes a specific stone, adjusting the initial rectangle.
334
335 Note that additive and subtractive groups can be chained, separated by |;|, allowing alternation between adding and removing elements in a single line as many times as desired.
336
337 \begin{codeexample}[width=6cm]
338 \begin{goban}[label = {at = all}, partial = {from = A1 to E6}]
339 \stones[b]{A1 R E6} % AD
340 \end{goban}
341
342 \begin{goban}[label = {at = all}, partial = {from = A1 to E6}]
343 \stones[b]{A1 R E6; A1 R C4, E6} % AD, SU
344 \end{goban}
345
346 \begin{goban}[label = {at = all}, partial = {from = A1 to E6}]
347 \stones[b]{A1 R E6; A1 R C4, E6; A 1:2} % AD, SU, AD
348 \end{goban}
349 \end{codeexample}
350
351 In this last example, a rectangle is created, two regions are removed (|A1 R C4| and |E6|), and then a segment is added (|A 1:2|).
352
353 \subsection{Profiles}
354
355 Profiles are equivalent to styles in \tikzname. In short, they allow saving a board and stone configuration under a name and recalling it whenever desired.
356
357 \begin{command}{\pgfgodefinegoban\opt{\oarg{options}}\marg{goban name}\marg{goban options}}
358 Allows assigning a name to a group of goban options. It has two optional settings.
359
360 \begin{key}{/pgfgo/profiles/goban/from = \meta{goban name}}
361 Allows defining a goban based on a copy of another.
362 \begin{codeexample}[code only]
363 \pgfgodefinegoban[from = gobanA]{gobanB}{...}
364 \end{codeexample}
365
366 It’s possible to copy itself to add options, though it’s not the best alternative.
367 \begin{codeexample}[code only]
368 \pgfgodefinegoban[from = gobanB]{gobanB}{...}
369 \end{codeexample}
370 \end{key}
371
372 \begin{key}{/pgfgo/profiles/goban/append}
373 Allows expanding the options of a goban.
374 \begin{codeexample}[code only]
375 \pgfgodefinegoban[append]{gobanB}{...}
376 \end{codeexample}
377 It is equivalent to:
378 \begin{codeexample}[code only]
379 \pgfgodefinegoban[from = gobanB]{gobanB}{...}
380 \end{codeexample}
381 \end{key}
382 \end{command}
383
384 \begin{command}{\pgfgodefineplayer\opt{\oarg{options}}\marg{player name}\marg{player options}}
385 Allows assigning a name to a group of stone options. Its options and \emph{keys} are equivalent to those of |\pgfgodefinegoban|.
386 \end{command}
387
388 \begin{command}{\pgfgousegoban\marg{goban name}}
389 Locally applies the options of the goban defined by |goban name|.
390 \end{command}
391
392 \begin{command}{\pgfgouseneutral\marg{player name}}
393 Locally applies the stone options defined by |player name| to the neutral player.
394 \end{command}
395
396 \begin{command}{\pgfgouseblack\marg{player name}}
397 Locally applies the stone options defined by |player name| to the black player.
398 \end{command}
399
400 \begin{command}{\pgfgousewhite\marg{player name}}
401 Locally applies the stone options defined by |player name| to the white player.
402 \end{command}
403
404 \begin{command}{\pgfgouseplayers\marg{neutral player name}\marg{black player name}\marg{white player name}}
405 Locally applies the stone options defined by |neutral player name|, |black player name|, and |white player name| to the corresponding players.
406 \end{command}
407
408 \begin{command}{\pgfgouseprofile\marg{name}}
409 This macro is equivalent to:
410 \begin{codeexample}[code only]
411 \pgfgousegoban{name}
412 \pgfgouseplayers{name-neutral}{name-black}{name-white}
413 \end{codeexample}
414
415 Note that stones named |name-neutral|, |name-black|, and |name-white| must exist. For example, when we previously ran |\pgfgouseprofile{pgfgo}|, it worked because there is a goban called |pgfgo|, and stones named |pgfgo-neutral|, |pgfgo-black|, and |pgfgo-white|.
416 \end{command}
417
418 \begin{codeexample}[width=3cm]
419 \pgfgodefinegoban{example}{background = {fill = {color = blue!05}}}
420 \pgfgodefineplayer[from = default-neutral]{example-neutral}
421 {stone = {
422 fill = {color = gray},
423 line = {color = magenta!20!black}}
424 }
425
426 \pgfgodefineplayer[from = example-neutral]{example-white}
427 {stone = {fill = {color = yellow}}}
428
429 \pgfgodefineplayer[from = example-neutral]{example-black}
430 {stone = {fill = {color = blue}}}
431
432 \pgfgouseprofile{example}
433
434 \begin{goban}[partial = {from = A1 to C3}]
435 \moves{A1:3}
436 \stones[b]{B1,B3,C2}
437 \stones[w]{C1,C3}
438 \stone{B2}
439 \end{goban}
440 \end{codeexample}
441
442 \subsection{Changing Options on the Fly}
443 \label{subsec:profiles}
444
445 When you want to change a board option with |\pgfgoset|, it can be done directly with |\pgfgoset{goban = {...}}|. For players, the situation is slightly different. For this, the following \emph{keys} are available:
446
447 \begin{key}{/pgfgo/players = \meta{players options}}
448 Allows adjusting player options. By default, there are three: |neutral|, |black|, and |white|. Players should not be confused with stone profiles. Once a stone profile is loaded, a change can be made with these \emph{keys}.
449 \end{key}
450
451 Player options can be configured all at once with the \emph{key} |all|, or separately. Changes made here will not affect the profile definitions. That is, if we load the |pgfgo| profile and modify the black player, this won’t affect the definition of |pgfgo-black|, but rather the player’s own options first.
452
453 \begin{key}{/pgfgo/players/all = \meta{all player options}}
454 \end{key}
455
456 \begin{key}{/pgfgo/players/neutral = \meta{neutral player options}}
457 \end{key}
458
459 \begin{key}{/pgfgo/players/black = \meta{first player options}}
460 \end{key}
461
462 \begin{key}{/pgfgo/players/white = \meta{second player options}}
463 \end{key}
464
465 Each player has access to the same key tree. For this reason, the following, although they mention |white|, apply to all players. Each is explained in the section corresponding to the object type, but they are briefly illustrated here.
466
467 \begin{key}{/pgfgo/players/white/stone = \meta{stone options}}
468 Controls the options for the second player’s stones.
469 \end{key}
470
471 \begin{key}{/pgfgo/players/white/stone/line = \meta{stone line options}}
472 Controls the options for the borders of the second player’s stones.
473 \end{key}
474
475 \begin{key}{/pgfgo/players/white/stone/line/true}
476 Determines whether the stone’s border appears or not.
477
478 \begin{codeexample}[width=4cm]
479 \pgfgouseprofile{pgfgosmooth}
480 \pgfgoset{goban = {partial = {from = A1 to C3}}}
481
482 \begin{goban}
483 \stones[b]{B1,C2}
484 \stone[w]{A3}
485 \end{goban}
486
487 \pgfgoset{players = {white = {stone = {line = true}}}}
488
489 \begin{goban}
490 \stones[b]{B1,C2}
491 \stone[w]{A3}
492 \end{goban}
493 \end{codeexample}
494 \end{key}
495
496 \begin{key}{/pgfgo/players/white/stone/line/false}
497 \end{key}
498
499 \begin{key}{/pgfgo/players/white/stone/line/width = \meta{dimension}}
500 Determines the thickness of the stone’s border.
501
502 \begin{codeexample}[width=4cm]
503 \pgfgouseprofile{pgfgosmooth}
504 \pgfgoset{goban = {partial = {from = A1 to C3}}}
505
506 \begin{goban}
507 \stones[b]{B1,C2}
508 \stone[w]{A3}
509 \end{goban}
510
511 \pgfgoset{players = {white = {stone = {line = {true, width = 1pt}}}}}
512
513 \begin{goban}
514 \stones[b]{B1,C2}
515 \stone[w]{A3}
516 \end{goban}
517 \end{codeexample}
518 \end{key}
519
520 \begin{key}{/pgfgo/players/white/stone/line/color = \meta{color}}
521 Determines the color of the stone’s border.
522
523 \begin{codeexample}[width=4cm]
524 \pgfgouseprofile{pgfgosmooth}
525 \pgfgoset{goban = {partial = {from = A1 to C3}}}
526
527 \begin{goban}
528 \stones[b]{B1,C2}
529 \stone[w]{A3}
530 \end{goban}
531
532 \pgfgoset{players = {white = {stone = {line = {true, width = 1pt, color = red}}}}}
533
534 \begin{goban}
535 \stones[b]{B1,C2}
536 \stone[w]{A3}
537 \end{goban}
538 \end{codeexample}
539 \end{key}
540
541 \begin{key}{/pgfgo/players/white/stone/line/opacity = \meta{float}}
542 Determines the opacity of the stone’s border.
543
544 \begin{codeexample}[width=4cm]
545 \pgfgouseprofile{pgfgosmooth}
546 \pgfgoset{goban = {partial = {from = A1 to C3}}}
547
548 \begin{goban}
549 \stones[b]{B1,C2}
550 \stone[w]{A3}
551 \end{goban}
552
553 \pgfgoset{players = {white = {stone = {line = {true, width = 2pt, opacity = 0.25}}}}}
554
555 \begin{goban}
556 \stones[b]{B1,C2}
557 \stone[w]{A3}
558 \end{goban}
559 \end{codeexample}
560 \end{key}
561
562 \begin{key}{/pgfgo/players/white/stone/fill = \meta{stone fill options}}
563 Controls options related to the stone’s fill.
564 \end{key}
565
566 \begin{key}{/pgfgo/players/white/stone/fill/true}
567 \end{key}
568
569 \begin{key}{/pgfgo/players/white/stone/fill/false}
570 \begin{codeexample}[width=4cm]
571 \pgfgouseprofile{pgfgosmooth}
572 \pgfgoset{goban = {partial = {from = A1 to C3}}}
573
574 \begin{goban}
575 \stones[b]{B1,C2}
576 \stone[w]{A3}
577 \end{goban}
578
579 \pgfgoset{players = {white = {stone = {fill = false}}}}
580 % What’s visible in the figure is what remains of the stone: shadows and highlights.
581
582 \begin{goban}
583 \stones[b]{B1,C2}
584 \stone[w]{A3}
585 \end{goban}
586 \end{codeexample}
587 \end{key}
588
589 \begin{key}{/pgfgo/players/white/stone/fill/color = \meta{color}}
590 \begin{codeexample}[width=4cm]
591 \pgfgouseprofile{pgfgosmooth}
592 \pgfgoset{goban = {partial = {from = A1 to C3}}}
593
594 \begin{goban}
595 \stones[b]{B1,C2}
596 \stone[w]{A3}
597 \end{goban}
598
599 \pgfgoset{players = {white = {stone = {fill = {color = magenta!20}}}}}
600
601 \begin{goban}
602 \stones[b]{B1,C2}
603 \stone[w]{A3}
604 \end{goban}
605 \end{codeexample}
606 \end{key}
607
608 \begin{key}{/pgfgo/players/white/stone/fill/opacity = \meta{float}}
609 Sets the opacity of the stone’s fill.
610
611 \begin{codeexample}[width=4cm]
612 \pgfgouseprofile{pgfgosmooth}
613 \pgfgoset{goban = {partial = {from = A1 to C3}}}
614
615 \begin{goban}
616 \stones[b]{B1,C2}
617 \stone[w]{A3}
618 \end{goban}
619
620 \pgfgoset{players = {white = {stone = {fill = {opacity = 0.5}}}}}
621
622 \begin{goban}
623 \stones[b]{B1,C2}
624 \stone[w]{A3}
625 \end{goban}
626 \end{codeexample}
627 \end{key}
628
629 \begin{key}{/pgfgo/players/white/stone/radius = \meta{dimension}}
630 Sets the stone’s radius.
631
632 \begin{codeexample}[width=4cm]
633 \pgfgouseprofile{pgfgosmooth}
634 \pgfgoset{goban = {partial = {from = A1 to C3}}}
635
636 \begin{goban}
637 \stones[b]{B1,C2}
638 \stone[w]{A3}
639 \end{goban}
640
641 \pgfgoset{players = {white = {stone = {radius = 0.3cm}}}}
642
643 \begin{goban}
644 \stones[b]{B1,C2}
645 \stone[w]{A3}
646 \end{goban}
647 \end{codeexample}
648 \end{key}
649
650 \begin{key}{/pgfgo/players/white/stone/scale = \meta{float}}
651 Controls the stone’s scale, which also affects markings.
652 \begin{codeexample}[width=4cm]
653 \pgfgouseprofile{pgfgosmooth}
654 \pgfgoset{goban = {partial = {from = A1 to C3}}}
655
656 \begin{goban}
657 \stones[b]{B1,C2}
658 \stone[w]{A3}
659 \end{goban}
660
661 \pgfgoset{players = {white = {stone = {scale = 1.25}}}}
662
663 \begin{goban}
664 \stones[b]{B1,C2}
665 \stone[w, mark = circle]{A3}
666 \end{goban}
667 \end{codeexample}
668 \end{key}
669
670 \begin{key}{/pgfgo/players/white/stone/drop shadow = \meta{stone drop shadow options}}
671 Controls options specific to shadows on stones.
672 \end{key}
673
674 \begin{key}{/pgfgo/players/white/stone/drop shadow/true}
675 Enables the shadow on the stone.
676 \end{key}
677
678 \begin{key}{/pgfgo/players/white/stone/drop shadow/false}
679 Disables the shadow on the stone.
680 \begin{codeexample}[width=4cm]
681 \pgfgouseprofile{pgfgosmooth}
682 \pgfgoset{goban = {partial = {from = A1 to C3}}}
683
684 \begin{goban}
685 \stones[b]{B1,C2}
686 \stone[w]{A3}
687 \end{goban}
688
689 \pgfgoset{players = {white = {stone = {drop shadow = false}}}}
690
691 \begin{goban}
692 \stones[b]{B1,C2}
693 \stone[w]{A3}
694 \end{goban}
695 \end{codeexample}
696 \end{key}
697
698 \begin{key}{/pgfgo/players/white/stone/drop shadow/angle = \meta{float}}
699 Sets the shadow’s angle.
700 \begin{codeexample}[width=4cm]
701 \pgfgouseprofile{pgfgosmooth}
702 \pgfgoset{goban = {partial = {from = A1 to C3}}}
703
704 \begin{goban}
705 \stones[b]{B1,C2}
706 \stone[w]{A3}
707 \end{goban}
708
709 \pgfgoset{players = {white = {stone = {drop shadow = {angle = 225}}}}}
710
711 \begin{goban}
712 \stones[b]{B1,C2}
713 \stone[w]{A3}
714 \end{goban}
715 \end{codeexample}
716 \end{key}
717
718 \begin{key}{/pgfgo/players/white/stone/drop shadow/offset = \meta{dimension}}
719 Sets the shadow’s offset from the center.
720 \begin{codeexample}[width=4cm]
721 \pgfgouseprofile{pgfgosmooth}
722 \pgfgoset{goban = {partial = {from = A1 to C3}}}
723
724 \begin{goban}
725 \stones[b]{B1,C2}
726 \stone[w]{A3}
727 \end{goban}
728
729 \pgfgoset{players = {white = {stone = {drop shadow = {offset = 0.125cm}}}}}
730
731 \begin{goban}
732 \stones[b]{B1,C2}
733 \stone[w]{A3}
734 \end{goban}
735 \end{codeexample}
736 \end{key}
737
738 \begin{key}{/pgfgo/players/white/stone/drop shadow/opacity = \meta{float}}
739 Controls the shadow’s opacity.
740 \begin{codeexample}[width=4cm]
741 \pgfgouseprofile{pgfgosmooth}
742 \pgfgoset{goban = {partial = {from = A1 to C3}}}
743
744 \begin{goban}
745 \stones[b]{B1,C2}
746 \stone[w]{A3}
747 \end{goban}
748
749 \pgfgoset{players = {white = {stone = {drop shadow = {offset = 0.125cm, opacity = 0.1}}}}}
750
751 \begin{goban}
752 \stones[b]{B1,C2}
753 \stone[w]{A3}
754 \end{goban}
755 \end{codeexample}
756 \end{key}
757
758 \begin{key}{/pgfgo/players/white/stone/drop shine = \meta{stone drop shine options}}
759 Controls highlights on stones.
760 \end{key}
761
762 \begin{key}{/pgfgo/players/white/stone/drop shine/true}
763 \end{key}
764
765 \begin{key}{/pgfgo/players/white/stone/drop shine/false}
766 Hides highlights on stones.
767 \begin{codeexample}[width=4cm]
768 \pgfgouseprofile{pgfgosmooth}
769 \pgfgoset{goban = {partial = {from = A1 to C3}}}
770
771 \begin{goban}
772 \stones[b]{B1,C2}
773 \stone[w]{A3}
774 \end{goban}
775
776 \pgfgoset{players = {black = {stone = {drop shine = false}}}}
777 % On black, where it’s more noticeable.
778
779 \begin{goban}
780 \stones[b]{B1,C2}
781 \stone[w]{A3}
782 \end{goban}
783 \end{codeexample}
784 \end{key}
785
786 \begin{key}{/pgfgo/players/white/stone/drop shine/angle = \meta{float}}
787 Controls the highlight’s angle.
788
789 \begin{codeexample}[width=4cm]
790 \pgfgouseprofile{pgfgosmooth}
791 \pgfgoset{goban = {partial = {from = A1 to C3}}}
792
793 \begin{goban}
794 \stones[b]{B1,C2}
795 \stone[w]{A3}
796 \end{goban}
797
798 \pgfgoset{players = {black = {stone = {drop shine = {angle = 0}}}}}
799 % On black, where it’s more noticeable.
800
801 \begin{goban}
802 \stones[b]{B1,C2}
803 \stone[w]{A3}
804 \end{goban}
805 \end{codeexample}
806 \end{key}
807
808 \begin{key}{/pgfgo/players/white/stone/drop shine/opacity = \meta{float}}
809 Controls the highlight’s opacity.
810
811 \begin{codeexample}[width=4cm]
812 \pgfgouseprofile{pgfgosmooth}
813 \pgfgoset{goban = {partial = {from = A1 to C3}}}
814
815 \begin{goban}
816 \stones[b]{B1,C2}
817 \stone[w]{A3}
818 \end{goban}
819
820 \pgfgoset{players = {black = {stone = {drop shine = {opacity = 0.5}}}}}
821 % On black, where it’s more noticeable.
822
823 \begin{goban}
824 \stones[b]{B1,C2}
825 \stone[w]{A3}
826 \end{goban}
827 \end{codeexample}
828 \end{key}
829
830 \begin{key}{/pgfgo/players/white/stone/prisoner = \meta{stone options}}
831 Controls the appearance of prisoners.
832 \end{key}
833
834 \begin{key}{/pgfgo/players/white/move = \meta{stone options}}
835 \end{key}
836
837 \begin{key}{/pgfgo/players/white/move/label = \meta{stone options}}
838 \end{key}
839
840 \begin{key}{/pgfgo/players/white/move/label/font size = \meta{stone options}}
841 \end{key}
842
843 \begin{key}{/pgfgo/players/white/move/label/color = \meta{stone options}}
844 \end{key}
845
846 \begin{key}{/pgfgo/players/white/move/label/format = \meta{stone options}}
847 \end{key}
848
849 \begin{key}{/pgfgo/players/white/move/label/format/arabic = \meta{stone options}}
850 \end{key}
851
852 \begin{key}{/pgfgo/players/white/move/label/format/alph = \meta{stone options}}
853 \end{key}
854
855 \begin{key}{/pgfgo/players/white/move/label/format/Alph = \meta{stone options}}
856 \end{key}
857
858 \begin{key}{/pgfgo/players/white/move/label/format/roman = \meta{stone options}}
859 \end{key}
860
861 \begin{key}{/pgfgo/players/white/move/label/format/Roman = \meta{stone options}}
862 \end{key}
863
864 \begin{key}{/pgfgo/players/white/mark = \meta{stone options}}
865 Controls the options for markings associated with the corresponding player.
866 \end{key}
867
868 \begin{key}{/pgfgo/players/white/mark/line = \meta{stone mark line options}}
869 \end{key}
870
871 \begin{key}{/pgfgo/players/white/mark/line/color = \meta{color}}
872 Controls the line color of markings.
873
874 \begin{codeexample}[width=4cm]
875 \pgfgouseprofile{pgfgosmooth}
876 \pgfgoset{goban = {partial = {from = A1 to C3}}}
877
878 \begin{goban}
879 \stones[b]{B1,C2}
880 \stone[w]{A3}
881 \end{goban}
882
883 \pgfgoset{players = {white = {mark = {line = {color = red!80!black}}}}}
884
885 \begin{goban}
886 \stones[b] {B1}
887 \stone [b, mark] {C2}
888 \stone [w, mark = circle] {A3}
889 \mark [w, circle] {A2}
890 \end{goban}
891 \end{codeexample}
892 \end{key}
893
894 \begin{key}{/pgfgo/players/white/mark/line/width = \meta{dimension}}
895 Controls the line thickness of markings.
896 \begin{codeexample}[width=4cm]
897 \pgfgouseprofile{pgfgosmooth}
898 \pgfgoset{goban = {partial = {from = A1 to C3}}}
899
900 \begin{goban}
901 \stones[b]{B1,C2}
902 \stone[w]{A3}
903 \end{goban}
904
905 \pgfgoset{players = {white = {mark = {line = {color = red!80!black}}}}}
906
907 \begin{goban}
908 \stones[b] {B1}
909 \stone [b, mark] {C2}
910 \stone [w, mark = circle] {A3}
911 \mark [w, circle] {A2}
912 \end{goban}
913 \end{codeexample}
914 \end{key}
915
916 \begin{key}{/pgfgo/players/white/mark/fill = \meta{stone mark fill options}}
917 \end{key}
918
919 \begin{key}{/pgfgo/players/white/mark/fill/true}
920 \end{key}
921
922 \begin{key}{/pgfgo/players/white/mark/fill/false}
923 \end{key}
924
925 \begin{key}{/pgfgo/players/white/mark/fill/color = \meta{color}}
926 \end{key}
927
928 \begin{key}{/pgfgo/players/white/mark/label = \meta{stone mark label options}}
929 Controls label options for markings that have them.
930 \end{key}
931
932 \begin{key}{/pgfgo/players/white/mark/label/color = \meta{color}}
933 \end{key}
934
935 \begin{key}{/pgfgo/players/white/mark/sequence = \meta{stone mark sequence options}}
936 Controls sequence options.
937 \end{key}
938
939 \begin{key}{/pgfgo/players/white/mark/sequence/format = \meta{stone mark sequence format choice}}
940 \end{key}
941
942 \begin{key}{/pgfgo/players/white/mark/sequence/format/arabic}
943 \end{key}
944
945 \begin{key}{/pgfgo/players/white/mark/sequence/format/alph}
946 \end{key}
947
948 \begin{key}{/pgfgo/players/white/mark/sequence/format/Alph}
949 \end{key}
950
951 \begin{key}{/pgfgo/players/white/mark/sequence/format/roman}
952 \end{key}
953
954 \begin{key}{/pgfgo/players/white/mark/sequence/format/Roman}
955 \end{key}