summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/fill.tex
blob: 27ac791b95f411072402faeec8ab8545e9482059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
\TFRGB{Utilisation du module}{Package} \textbf{pst-fill} \label{pst-fill}

\psboxfill{\MonMotif}

\begin{center}
\begin{tabular}{|p{14cm}|} \hline
\multicolumn{1}{|c|}{ \TFRGB{Création du motif}{Creating the pattern} : \begin{pspicture}(-.5,-.27)(.5,.27)
 \psframe[dimen=middle,fillcolor=yellow,fillstyle=solid,linecolor=blue](-.5,-.25)(.5,.25)
 \pscircle[dimen=middle,fillcolor=magenta,fillstyle=solid,linecolor=magenta]{.1}
\end{pspicture} 
} \\ \hline 
\BS{}newcommand\AC{{\red \BS{}MonMotif}}\{

\BS{}begin\AC{pspicture}(1,.5)

\BS{}psframe[dimen=middle,fillcolor=yellow,fillstyle=solid,linecolor=blue](1,.5)

\BS{}pscircle[dimen=middle,fillcolor=magenta,fillstyle=solid,linecolor=magenta](.5,.25)\AC{.1}

\BS{}end\AC{pspicture} \} \\ \hline 
\multicolumn{1}{|c|}{\TFRGB{Utilisation du motif}{Using the pattern} : \BSS{psboxfill}\AC{{\red\BS{}MonMotif}}  \BSI{psboxfill}{pst-fill} }\\   \hline

\multicolumn{1}{|l|}{\BS{}pspolygon[fillstyle=\RDDD{boxfill}{fillstyle}](0,.5)(1,2)(3,2)(4,0)(2,.5)}\\  
\multicolumn{1}{|c|}{\begin{pspicture}(2.5,2.5) \pspolygon[fillstyle=boxfill](0,.5)(1,2)(3,2)(4,0)(2,.5) \end{pspicture} }\\ \hline
\end{tabular}
\end{center}

%---------------------------------------------------
 
 

\psset{arrowscale=2}
\psset{linecolor=blue,fillcolor=yellow,linewidth=1pt}


 
 
 \begin{center}
 \begin{tabular}{|c|c|c|} \hline 
\begin{pspicture}(2.5,2.5)
\psframe[fillstyle=boxfill,fillangle=90](0,0)(2,2)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillangle=45](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(2.5,2.5)
\pscircle[fillstyle=boxfill,fillangle=-30](1,1){1}
\end{pspicture}   \\ \hline
 \RDD{fillangle}=90  \RDI{fillangle}{pst-fill} & {\red fillangle}=45 & {\red fillangle}=-30 \\ \hline
\multicolumn{3}{|c|}{ \blue \dft  : 0 }\\ \hline

 \end{tabular}
 \end{center}
 
 
\begin{center}
\begin{tabular}{|c|c|c|} \hline 
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillsepx=.25cm](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillsepy=.25cm](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillsep=.25cm](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture} \\ \hline
\RDD{fillsepx}=.25cm  \RDI{fillsepx}{pst-fill} &
\RDD{fillsepy}=.25cm  \RDI{fillsepy}{pst-fill} &  \RDD{fillsep}=.25cm  \RDI{fillsep}{pst-fill}\\ \hline
\end{tabular}
\end{center}

 
\begin{center}
\begin{tabular}{|c|c|c|} \hline 
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillcyclex=3](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillcycley=3](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillcycle=3](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture} \\ \hline
\RDD{fillcyclex}=3  \RDI{fillcyclex}{pst-fill} & 
\RDD{fillcycley}=3  \RDI{fillcycley}{pst-fill} &  
\RDD{fillcycle}=3  \RDI{fillcycle}{pst-fill} \\ \hline
\multicolumn{3}{|c|}{ 3  \TFRGB{correspond à}{corresponds to} $1/3$, {\blue \dft  : 0} }\\ \hline
\end{tabular}
\end{center}

\begin{center}
\begin{tabular}{|c|c|c|} \hline 
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillmovex=.1](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillmovey=.1](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\pspolygon[fillstyle=boxfill,fillmove=.1](0,.5)(1,2)(3,2)(4,0)(2,.5)
\end{pspicture} \\ \hline
\RDD{fillmovex}=.1 \RDI{fillmovex}{pst-fill}  & 
\RDD{fillmovey}=.1 \RDI{fillmovey}{pst-fill}  &  \RDD{fillmove}=.1 \RDI{fillmove}{pst-fill}  \\ \hline
\multicolumn{3}{|c|}{ .1  \TFRGB{correspond à}{corresponds to} 0,1 cm , {\blue \dft  : 0 }}\\ \hline
\end{tabular}
\end{center}


\begin{center}
\begin{tabular}{|c|c|c|c|} \hline 
\multicolumn{4}{|c|}{\BS{}pspolygon[fillstyle=boxfill](0.6,.7)(1.8,2.4)(2.3,.6)(4,1.2)(2.5,.3) }\\ \hline
\begin{pspicture}(.5,0)(4,3)
\pspolygon[fillstyle=boxfill](0.6,.7)(1.8,2.4)(2.3,1.6)(3.8,1.2)(2.5,.3)
\end{pspicture}
&
\begin{pspicture}(.5,0)(4,3)
\pspolygon[fillstyle=boxfill,fillloopaddx=1](0.6,.7)(1.8,2.4)(2.3,1.6)(3.8,1.2)(2.5,.3)
\end{pspicture}
&
\begin{pspicture}(.5,0)(4,3)
\pspolygon[fillstyle=boxfill,fillloopaddy=1](0.6,.7)(1.8,2.4)(2.3,1.6)(3.8,1.2)(2.5,.3)
\end{pspicture} 
&
\begin{pspicture}(.5,0)(4,3)
\pspolygon[fillstyle=boxfill,fillloopadd=1](0.6,.7)(1.8,2.4)(2.3,1.6)(3.8,1.2)(2.5,.3)
\end{pspicture} \\ \hline
  & 
  \RDD{fillloopaddx}=1  \RDI{fillloopaddx}{pst-fill}  & \RDD{fillloopaddy}=1  \RDI{fillloopaddy}{pst-fill}  & 
  \RDD{fillloopadd}=1  \RDI{fillloopadd}{pst-fill}  \\ \hline
\multicolumn{4}{|c|}{\blue \dft : 0} \\ \hline
\end{tabular}
\end{center}