Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/alea.tex

raw
1
2 \psset{unit=1cm,fillcolor=yellow,fillcolor=white}
3
4
5 \begin{center}
6 \begin{tabular}{|c|c|c|} \hline
7 \multicolumn{3}{|c|}{\BSS{psRandom}\AC{\BS{}pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)} \BSI{psRandom}{pstricks-add} }\\ \hline
8 \begin{pspicture}(4,2.5)
9 \psRandom{\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
10 \end{pspicture}
11 &
12 \begin{pspicture}(4,2.5)
13 \psRandom(1,1)(2,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
14 \end{pspicture}
15 &
16 \begin{pspicture}(4,2.5)
17 \psRandom(0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
18 \end{pspicture} \\ \hline
19 \BS{psRandom}\AC{\BS{}pspolygon \dots }&
20 \BS{psRandom}{\red (1,1)(2,2)}\AC{\dots }&
21 \BS{psRandom}{\red (0,0)(4,2)}\AC{\dots }\\ \hline
22 \end{tabular}
23 \end{center}
24
25 \begin{center}
26 \begin{tabular}{|c|c|c|} \hline
27 \multicolumn{3}{|c|}{\BS{psRandom}[{\red options}](0,0)(4,2)\AC{\BS{}pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}}\\ \hline
28 \begin{pspicture}(4,2.5)
29 \psRandom[randomPoints=100](0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
30 \end{pspicture}
31 &
32 \begin{pspicture}(4,2.5)
33 \psRandom[color](0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
34 \end{pspicture}
35 &
36 \begin{pspicture}(4,2.5)
37 \psRandom[dotstyle=+](0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
38 \end{pspicture} \\ \hline
39 \RDD{randomPoints}=100 \RDI{randomPoints}{pstricks-add} &
40 \RDD{color} \RDI{color}{pstricks-add}&
41 \RDD{dotstyle}=+ \RDI{dotstyle}{pstricks-add}
42 \\ \hline
43 {\blue \dft : 1000} & & \\ \hline
44 \end{tabular}
45 \end{center}