summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/visualtikz/Source/tkz4.tex
blob: 31646c2ac8272c187bc9864a2f72701e234ac178 (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

%\subsubsection{Transformations}

\RRR{25-3}


\begin{tabular}{|c|c|c|c|} \hline 
\multicolumn{4}{|c|}{  \BS{draw}[\RDD{rotate},blue] (0,0)  rectangle  (2,2) ;   }\\ 
\hline  
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[rotate=40,blue] (0,0) rectangle  (2,2) ; % rotation 40°
\end{tikzpicture}
&  
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[x=1cm,y=.5cm,blue] (0,0) rectangle  (2,2);  % rotation 40°
\end{tikzpicture}
&  
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[xslant=.75,blue] (0,0) rectangle  (2,2);  % rotation 40°
\end{tikzpicture}
&
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[yslant=.75,blue] (0,0) rectangle  (2,2);  % rotation 40°
\end{tikzpicture}
\\ \hline  
\RDD{rotate}=40 & \RDD{x}=1cm,\RDD{y}=0.5cm & \RDD{xslant}=0.75 & \RDD{yslant}=0.75\\ 
\hline 
%\end{tabular} 
%
%\bigskip
%
%\begin{tabular}{|c|c|c|c|} \hline 
%\multicolumn{4}{|c|}{  \BS{draw}[\RDD{rotate}=40,blue] (0,0)  rectangle  (2,2) ;   }\\ 
%\hline  
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[scale=1.5,blue] (0,0) rectangle  (2,2) ; % rotation 40°
\end{tikzpicture}
&  
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[scale=-1,y=.5cm,blue] (0,0) rectangle  (2,2);  % rotation 40°
\end{tikzpicture}
&  
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[xshift=.5cm,blue] (0,0) rectangle  (2,2);  % rotation 40°
\end{tikzpicture}
&
\begin{tikzpicture}
\draw[dashed,red] (0,0) rectangle  (2,2) ; 
\draw[yshift=.5cm,blue] (0,0) rectangle  (2,2);  % rotation 40°
\end{tikzpicture}
\\ \hline  
\RDD{scale}=1.5 & \RDD{scale}=-1 & \RDD{xshift}=0.5cm & \RDD{yshift}=0.5cm
\\ \hline 
\end{tabular} 

\bigskip

%==============================================
%\begin{tikzpicture}
%\draw[help lines] (0,0) grid (3,2);
%\draw (0,0) - - (1,1) - - (1,0);
%\draw[rotate=40,blue] (0,0) - - (1,1) - - (1,0); % rotation 40°
%\draw[rotate=-20,red] (0,0) - - (1,1) - - (1,0); % rotation -20°
%\end{tikzpicture}

%\tikz \draw[x=1cm,y=.5cm] (0,0) rectangle(2,2);

%\tikz \draw (0,0) rectangle (1,0.5) [xshift=2cm] (0,0) rectangle (1,0.5);

%\begin{tikzpicture}
%\draw[help lines] (0,0) grid (3,2);
%\draw (0,0) - - (1,1) - - (1,0);
%\draw[scale=2,blue] (0,0) - - (1,1) - - (1,0); % échelle 2
%\draw[scale=-1,red] (0,0) - - (1,1) - - (1,0); % échelle -1
%\end{tikzpicture}

%\begin{tikzpicture}
%\draw[help lines] (0,0) grid (3,2);
%\draw (0,0) - - (1,1) - - (1,0);
%\draw[xslant=2,blue] (0,0) - - (1,1) - - (1,0);
%\draw[xslant=-1,red] (0,0) - - (1,1) - - (1,0);
%\end{tikzpicture}

%\begin{tikzpicture}
%\draw[help lines] (0,0) grid (3,2);
%\draw (0,0) rectangle (1,0.5);
%\beginscope[xshift=2cm] % Décalage en X de 2cm
%\draw [red] (0,0) rectangle (1,0.5);
%\draw[yshift=1cm,blue] (0,0) rectangle (1,0.5);
%\draw[rotate=30,orange] (0,0) rectangle (1,0.5);
%\endscope
%\end{tikzpicture}