128 CHAPITRE 8. DES FIGURES AUX ILLUSTRATIONS \draw (A) .. controls (S) and (T) .. (B); S T ⇥ A ⇥ B Une fois les points A et B placés, on peut modifier la courbure en jouant de façon assez intuitive avec les points S ou T .OnmontreicideuxdéplacementsdupointT et l’effet produit sur la courbe : S T S T ⇥ A ⇥ B ⇥ A ⇥ B On peut considérer que plus AS ou BT sont longs, plus la courbe colle à la tangente. On constate donc que les déplacements des points de contrôle S est T ont un effet global sur la forme de la courbe, mais sans en déplacer les extrémités A et B. Une autre syntaxe permet de définir les vecteurs tangents ! u = AS ! et ! v = BT ! en coordonnées relatives par rapport à A et B respectivement : \draw (A) .. controls +(u) and +(v) .. (B); u v A B On peut maintenant construire des formes complexes constituées d’arcs de Bézier raccordés bout à bout. Si, de plus, on aligne les vecteurs tangents aux extrémités communes, on obtient facilement des courbes lisses. Par exemple, on peut commencer à dessiner un cœur ainsi : \draw (0,0) ..controls +(0,2) and +(0,2).. (3,0); % arc 1 \draw (3,0) ..controls +(0,-2) and +(0,2).. (0,-4); % arc 2 +(0, 2) 1 +(0, 2) (0, 0) (3, 0) +(0, 2) 2 +(0, 2) (0, 4)
8.3. PERSONNAGES ET DÉCORS 129 En ajoutant deux arcs supplémentaires, on complète le cœur avec une symétrie par rapport à l’axe vertical : \draw[fill=red] (0,0) ... cycle; 4 1 ( 3, 0) (0, 0) (3, 0) 3 2 (0, 4) 8.3.5 Cœurs multicolores : \shift, rotate, ball color Les options de la commande \draw peuvent être modifiées pour changer l’aspect du cœur, comme par exemple : \draw [scale=0.25,rotate=45,ball color=blue] (0,0) .. controls +(0,2) and +(0,3) .. (3,0) .. controls +(0,-2) and +(0,2) .. (0,-4) .. controls +(0,2) and +(0,-2) .. (-3,0) .. controls +(0,2) and +(0,2) .. (0,0); On va donc créer une commande ayant pour paramètres les options de la commande \draw et faire appel à cette commande plusieurs fois, pour dessiner les cœurs à des endroits différents avec des orientations différentes : % Commande \coeur \newcommand{\coeur}[1][fill=red] % rouge par défaut {\draw [#1] (0,0) .. controls +(0,2) and +(0,2) .. (3,0) .. controls +(0,-2) and +(0,2) .. (0,-4) .. controls +(0,2) and +(0,-2) .. (-3,0) .. controls +(0,2) and +(0,2) .. (0,0);} % Dessin \coeur[shift={(1.3,2)},ball color=red,scale=0.35] \coeur[shift={(0.3,1.8)},ball color=orange,scale=0.2,rotate=35] \coeur[shift={(2.2,1.6)},ball color=magenta,scale=0.2,rotate=-20] \coeur[shift={(1.8,2.5)},ball color=green,scale=0.25,rotate=-25] \coeur[shift={(2.7,2.1)},ball color=yellow,scale=0.15,rotate=10] (0, 0)•
- Page 1:
TikZ pour l'impatient Gérard Tisse
- Page 4 and 5:
l’impatient TikZ pour \def\arete{
- Page 6 and 7:
4 TABLE DES MATIÈRES 2 Chemins, op
- Page 8 and 9:
6 TABLE DES MATIÈRES 6.2.1 Les arc
- Page 11 and 12:
Avant-propos Vous avez des document
- Page 13 and 14:
Chapitre 1 Premières figures 1.1 U
- Page 15 and 16:
1.2. LE REPÉRAGE DES POINTS 13 1.2
- Page 17 and 18:
1.3. EXEMPLE : TRACER UN SEGMENT OU
- Page 19 and 20:
1.3. EXEMPLE : TRACER UN SEGMENT OU
- Page 21 and 22:
1.4. FIGURE GÉOMÉTRIQUE : MÉTHOD
- Page 23 and 24:
1.4. FIGURE GÉOMÉTRIQUE : MÉTHOD
- Page 25 and 26:
1.5. EXERCICES : FIGURES GÉOMÉTRI
- Page 27 and 28:
1.5. EXERCICES : FIGURES GÉOMÉTRI
- Page 29 and 30:
Chapitre 2 Chemins, options graphiq
- Page 31 and 32:
2.1. SIMPLIFICATIONS, RACCOURCIS, A
- Page 33 and 34:
2.1. SIMPLIFICATIONS, RACCOURCIS, A
- Page 35 and 36:
2.2. DÉCORATIONS, STYLES, OPTIONS
- Page 37 and 38:
2.3. AXES, GRILLE, FENÊTRE D’AFF
- Page 39 and 40:
2.4. COMPLÉMENTS : OPACITÉ, COULE
- Page 41 and 42:
2.5. EXERCICES : STYLES DE TRAITS,
- Page 43 and 44:
Chapitre 3 Courbes 3.1 Tracer une c
- Page 45 and 46:
3.1. TRACER UNE COURBE : PLOT (...)
- Page 47 and 48:
3.2. ASPECT DU GRAPHE 45 En TikZ, l
- Page 49 and 50:
3.2. ASPECT DU GRAPHE 47 \draw[doma
- Page 51 and 52:
3.3. RÉGIONS LIMITÉES PAR DES COU
- Page 53 and 54:
3.4. COMPLÉMENTS TECHNIQUES 51 Dep
- Page 55 and 56:
3.5. EXERCICES 53 | 0 | 1 | 2 e | 3
- Page 57 and 58:
3.5. EXERCICES 55 \fill [pattern=ho
- Page 59:
3.6. RÉSUMÉ 57 bonne installation
- Page 62 and 63:
60 CHAPITRE 4. GÉOMÉTRIE DANS L
- Page 64 and 65:
62 CHAPITRE 4. GÉOMÉTRIE DANS L
- Page 66 and 67:
64 CHAPITRE 4. GÉOMÉTRIE DANS L
- Page 68 and 69:
66 CHAPITRE 5. REPRÉSENTATION DE D
- Page 70 and 71:
68 CHAPITRE 5. REPRÉSENTATION DE D
- Page 72 and 73:
70 CHAPITRE 5. REPRÉSENTATION DE D
- Page 74 and 75:
72 CHAPITRE 5. REPRÉSENTATION DE D
- Page 76 and 77:
74 CHAPITRE 5. REPRÉSENTATION DE D
- Page 78 and 79:
76 CHAPITRE 5. REPRÉSENTATION DE D
- Page 80 and 81: 78 CHAPITRE 5. REPRÉSENTATION DE D
- Page 82 and 83: 80 CHAPITRE 5. REPRÉSENTATION DE D
- Page 84 and 85: 82 CHAPITRE 5. REPRÉSENTATION DE D
- Page 86 and 87: 84 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 88 and 89: 86 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 90 and 91: 88 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 92 and 93: 90 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 94 and 95: 92 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 96 and 97: 94 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 98 and 99: 96 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 100 and 101: 98 CHAPITRE 6. GRAPHES : INTRODUCTI
- Page 102 and 103: 100 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 104 and 105: 102 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 106 and 107: 104 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 108 and 109: 106 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 110 and 111: 108 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 112 and 113: 110 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 114 and 115: 112 CHAPITRE 7. GRAPHES: EXEMPLES 2
- Page 116 and 117: 114 CHAPITRE 7. GRAPHES : EXEMPLES
- Page 118 and 119: 116 CHAPITRE 8. DES FIGURES AUX ILL
- Page 120 and 121: 118 CHAPITRE 8. DES FIGURES AUX ILL
- Page 122 and 123: 120 CHAPITRE 8. DES FIGURES AUX ILL
- Page 124 and 125: 122 CHAPITRE 8. DES FIGURES AUX ILL
- Page 126 and 127: 124 CHAPITRE 8. DES FIGURES AUX ILL
- Page 128 and 129: 126 CHAPITRE 8. DES FIGURES AUX ILL
- Page 132 and 133: 130 CHAPITRE 8. DES FIGURES AUX ILL
- Page 134 and 135: 132 CHAPITRE 9. COMPLÉMENTS TECHNI
- Page 136 and 137: 134 CHAPITRE 9. COMPLÉMENTS TECHNI
- Page 138 and 139: 136 CHAPITRE 9. COMPLÉMENTS TECHNI
- Page 140 and 141: 138 CHAPITRE 9. COMPLÉMENTS TECHNI
- Page 142 and 143: 140 CHAPITRE 9. COMPLÉMENTS TECHNI
- Page 144 and 145: 142 CHAPITRE 9. COMPLÉMENTS TECHNI
- Page 147 and 148: Annexe A La syntaxe de TikZ La synt
- Page 149 and 150: A.4. LES OPÉRATIONS DE CHEMIN 147
- Page 151 and 152: A.5. LES OPTIONS 149 Les options im
- Page 153 and 154: Annexe B Erreur ! Que faire ? Soyon
- Page 155: Annexe C Où trouver de l’aide ?
- Page 158 and 159: 156 ANNEXE D. GLOSSAIRE — (P) coo
- Page 160 and 161: 158 ANNEXE D. GLOSSAIRE edge from p
- Page 162 and 163: 160 ANNEXE D. GLOSSAIRE [out=], [in
- Page 164 and 165: 162 ANNEXE D. GLOSSAIRE .south (Pos
- Page 167: % avec \usetikzlibrary{fadings} en