Browse Source

Transférer les fichiers vers ''

master
Nicolas Tissot 1 year ago
parent
commit
52ee6308ae
2 changed files with 150 additions and 0 deletions
  1. BIN
      cercle_chromatique.pdf
  2. +150
    -0
      cercle_chromatique.tex

BIN
cercle_chromatique.pdf View File


+ 150
- 0
cercle_chromatique.tex View File

@@ -0,0 +1,150 @@
% Roue chromatique --- Nicolas Tissot --- https://la-biblioTeX.fr
% Source : https://git.la-bibliotex.fr/nicolas/Cercle_chromatique
% Certains éléments sont inspirée du code de Roberto Bonvallet
% sous licence Creative Commons attribution.
% lien : http://www.texample.net/tikz/examples/dartboard/

\documentclass{standalone}
\usepackage{tikz}
\usepackage{xcolor}

% Définition du nom des couleurs Hsb

\definecolor{hsb0}{Hsb}{0,1,1}
\definecolor{hsb15}{Hsb}{15,1,1}
\definecolor{hsb30}{Hsb}{30,1,1}
\definecolor{hsb45}{Hsb}{45,1,1}
\definecolor{hsb60}{Hsb}{60,1,1}
\definecolor{hsb75}{Hsb}{75,1,1}
\definecolor{hsb90}{Hsb}{90,1,1}
\definecolor{hsb105}{Hsb}{105,1,1}
\definecolor{hsb120}{Hsb}{120,1,1}
\definecolor{hsb135}{Hsb}{135,1,1}
\definecolor{hsb150}{Hsb}{150,1,1}
\definecolor{hsb165}{Hsb}{165,1,1}
\definecolor{hsb180}{Hsb}{180,1,1}
\definecolor{hsb195}{Hsb}{195,1,1}
\definecolor{hsb210}{Hsb}{210,1,1}
\definecolor{hsb225}{Hsb}{225,1,1}
\definecolor{hsb240}{Hsb}{240,1,1}
\definecolor{hsb255}{Hsb}{255,1,1}
\definecolor{hsb270}{Hsb}{270,1,1}
\definecolor{hsb285}{Hsb}{285,1,1}
\definecolor{hsb300}{Hsb}{300,1,1}
\definecolor{hsb315}{Hsb}{315,1,1}
\definecolor{hsb330}{Hsb}{330,1,1}
\definecolor{hsb345}{Hsb}{345,1,1}

% Création macro des arcs de 15° sur 10 dégradés d’intensité

\newcommand{\sector}[3]{
\filldraw[#1]
(0, 0) --
({15 * #2} : #3) arc
({15 * #2} : {15 * (#2 + 1)} : #3) -- cycle;
\filldraw[#1!90]
(0, 0) --
({15 * #2} : {#3-#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-#3/10}) -- cycle;
\filldraw[#1!80]
(0, 0) --
({15 * #2} : {#3-#3/5}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-#3/5}) -- cycle;
\filldraw[#1!70]
(0, 0) --
({15 * #2} : {#3-3*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-3*#3/10}) -- cycle;
\filldraw[#1!60]
(0, 0) --
({15 * #2} : {#3-4*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-4*#3/10}) -- cycle;
\filldraw[#1!50]
(0, 0) --
({15 * #2} : {#3-5*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-5*#3/10}) -- cycle;
\filldraw[#1!40]
(0, 0) --
({15 * #2} : {#3-6*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-6*#3/10}) -- cycle;
\filldraw[#1!30]
(0, 0) --
({15 * #2} : {#3-7*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-7*#3/10}) -- cycle;
\filldraw[#1!20]
(0, 0) --
({15 * #2} : {#3-8*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-8*#3/10}) -- cycle;
\filldraw[#1!10]
(0, 0) --
({15 * #2} : {#3-9*#3/10}) arc
({15 * #2} : {15 * (#2 + 1)} : {#3-9*#3/10}) -- cycle;
}


\begin{document}

-\begin{tikzpicture}[rotate={-7.5}]
%
\node [above] at (97.5 :5.5 ) {\Large Cercle chromatique} ;

\node [rotate= -90 ] at ( 7.5 :5 ) {Rouge};
\node [rotate= -30 ] at ( 67.5 :5 ) {Jaune};
\node [rotate= 30 ] at ( 127.5 :5 ) {Vert};
\node [rotate= 90 ] at ( 187.5 :5 ) {Cyan};
\node [rotate= 150 ] at ( 247.5 :5 ) {Bleu};
\node [rotate= 210 ] at ( 307.5 :5 ) {Magenta};

\node[rotate= -90 ] at ( 7.5 :4.3) {\footnotesize 0 } ;
\node[rotate= -75 ] at ( 22.5 :4.3) {\footnotesize 15 } ;
\node[rotate= -60 ] at ( 37.5 :4.3) {\footnotesize 30 } ;
\node[rotate= -45 ] at ( 52.5 :4.3) {\footnotesize 45 } ;
\node[rotate= -30 ] at ( 67.5 :4.3) {\footnotesize 60 } ;
\node[rotate= -15 ] at ( 82.5 :4.3) {\footnotesize 75 } ;
\node[rotate= 0 ] at ( 97.5 :4.3) {\footnotesize 90 } ;
\node[rotate= 15 ] at ( 112.5 :4.3) {\footnotesize 105 } ;
\node[rotate= 30 ] at ( 127.5 :4.3) {\footnotesize 120 } ;
\node[rotate= 45 ] at ( 142.5 :4.3) {\footnotesize 135 } ;
\node[rotate= 60 ] at ( 157.5 :4.3) {\footnotesize 150 } ;
\node[rotate= 75 ] at ( 172.5 :4.3) {\footnotesize 165 } ;
\node[rotate= 90 ] at ( 187.5 :4.3) {\footnotesize 180 } ;
\node[rotate= 105 ] at ( 202.5 :4.3) {\footnotesize 195 } ;
\node[rotate= 120 ] at ( 217.5 :4.3) {\footnotesize 210 } ;
\node[rotate= 135 ] at ( 232.5 :4.3) {\footnotesize 225 } ;
\node[rotate= 150 ] at ( 247.5 :4.3) {\footnotesize 240 } ;
\node[rotate= 165 ] at ( 262.5 :4.3) {\footnotesize 255 } ;
\node[rotate= 180 ] at ( 277.5 :4.3) {\footnotesize 270 } ;
\node[rotate= 195 ] at ( 292.5 :4.3) {\footnotesize 285 } ;
\node[rotate= 210 ] at ( 307.5 :4.3) {\footnotesize 300 } ;
\node[rotate= 225 ] at ( 322.5 :4.3) {\footnotesize 315 } ;
\node[rotate= 240 ] at ( 337.5 :4.3) {\footnotesize 330 } ;
\node[rotate= 255 ] at ( 352.5 :4.3) {\footnotesize 345 } ;

\sector{hsb0}{0 }{4cm }
\sector{hsb15}{1 }{4cm }
\sector{hsb30}{2 }{4cm }
\sector{hsb45}{3 }{4cm }
\sector{hsb60}{4 }{4cm }
\sector{hsb75}{5 }{4cm }
\sector{hsb90}{6 }{4cm }
\sector{hsb105}{7 }{4cm }
\sector{hsb120}{8 }{4cm }
\sector{hsb135}{9 }{4cm }
\sector{hsb150}{10 }{4cm }
\sector{hsb165}{11 }{4cm }
\sector{hsb180}{12 }{4cm }
\sector{hsb195}{13 }{4cm }
\sector{hsb210}{14 }{4cm }
\sector{hsb225}{15 }{4cm }
\sector{hsb240}{16 }{4cm }
\sector{hsb255}{17 }{4cm }
\sector{hsb270}{18 }{4cm }
\sector{hsb285}{19 }{4cm }
\sector{hsb300}{20 }{4cm }
\sector{hsb315}{21 }{4cm }
\sector{hsb330}{22 }{4cm }
\sector{hsb345}{23 }{4cm }

\end{tikzpicture}

\end{document}


Loading…
Cancel
Save