Cercle chromatique sur 24 dégradés.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
5.2 KiB

  1. % Roue chromatique --- Nicolas Tissot --- https://la-biblioTeX.fr
  2. % Source : https://git.la-bibliotex.fr/nicolas/Cercle_chromatique
  3. % Certains éléments sont inspirée du code de Roberto Bonvallet
  4. % sous licence Creative Commons attribution.
  5. % lien : http://www.texample.net/tikz/examples/dartboard/
  6. \documentclass{standalone}
  7. \usepackage{tikz}
  8. \usepackage{xcolor}
  9. % Définition du nom des couleurs Hsb
  10. \definecolor{hsb0}{Hsb}{0,1,1}
  11. \definecolor{hsb15}{Hsb}{15,1,1}
  12. \definecolor{hsb30}{Hsb}{30,1,1}
  13. \definecolor{hsb45}{Hsb}{45,1,1}
  14. \definecolor{hsb60}{Hsb}{60,1,1}
  15. \definecolor{hsb75}{Hsb}{75,1,1}
  16. \definecolor{hsb90}{Hsb}{90,1,1}
  17. \definecolor{hsb105}{Hsb}{105,1,1}
  18. \definecolor{hsb120}{Hsb}{120,1,1}
  19. \definecolor{hsb135}{Hsb}{135,1,1}
  20. \definecolor{hsb150}{Hsb}{150,1,1}
  21. \definecolor{hsb165}{Hsb}{165,1,1}
  22. \definecolor{hsb180}{Hsb}{180,1,1}
  23. \definecolor{hsb195}{Hsb}{195,1,1}
  24. \definecolor{hsb210}{Hsb}{210,1,1}
  25. \definecolor{hsb225}{Hsb}{225,1,1}
  26. \definecolor{hsb240}{Hsb}{240,1,1}
  27. \definecolor{hsb255}{Hsb}{255,1,1}
  28. \definecolor{hsb270}{Hsb}{270,1,1}
  29. \definecolor{hsb285}{Hsb}{285,1,1}
  30. \definecolor{hsb300}{Hsb}{300,1,1}
  31. \definecolor{hsb315}{Hsb}{315,1,1}
  32. \definecolor{hsb330}{Hsb}{330,1,1}
  33. \definecolor{hsb345}{Hsb}{345,1,1}
  34. % Création macro des arcs de 15° sur 10 dégradés d’intensité
  35. \newcommand{\sector}[3]{
  36. \filldraw[#1]
  37. (0, 0) --
  38. ({15 * #2} : #3) arc
  39. ({15 * #2} : {15 * (#2 + 1)} : #3) -- cycle;
  40. \filldraw[#1!90]
  41. (0, 0) --
  42. ({15 * #2} : {#3-#3/10}) arc
  43. ({15 * #2} : {15 * (#2 + 1)} : {#3-#3/10}) -- cycle;
  44. \filldraw[#1!80]
  45. (0, 0) --
  46. ({15 * #2} : {#3-#3/5}) arc
  47. ({15 * #2} : {15 * (#2 + 1)} : {#3-#3/5}) -- cycle;
  48. \filldraw[#1!70]
  49. (0, 0) --
  50. ({15 * #2} : {#3-3*#3/10}) arc
  51. ({15 * #2} : {15 * (#2 + 1)} : {#3-3*#3/10}) -- cycle;
  52. \filldraw[#1!60]
  53. (0, 0) --
  54. ({15 * #2} : {#3-4*#3/10}) arc
  55. ({15 * #2} : {15 * (#2 + 1)} : {#3-4*#3/10}) -- cycle;
  56. \filldraw[#1!50]
  57. (0, 0) --
  58. ({15 * #2} : {#3-5*#3/10}) arc
  59. ({15 * #2} : {15 * (#2 + 1)} : {#3-5*#3/10}) -- cycle;
  60. \filldraw[#1!40]
  61. (0, 0) --
  62. ({15 * #2} : {#3-6*#3/10}) arc
  63. ({15 * #2} : {15 * (#2 + 1)} : {#3-6*#3/10}) -- cycle;
  64. \filldraw[#1!30]
  65. (0, 0) --
  66. ({15 * #2} : {#3-7*#3/10}) arc
  67. ({15 * #2} : {15 * (#2 + 1)} : {#3-7*#3/10}) -- cycle;
  68. \filldraw[#1!20]
  69. (0, 0) --
  70. ({15 * #2} : {#3-8*#3/10}) arc
  71. ({15 * #2} : {15 * (#2 + 1)} : {#3-8*#3/10}) -- cycle;
  72. \filldraw[#1!10]
  73. (0, 0) --
  74. ({15 * #2} : {#3-9*#3/10}) arc
  75. ({15 * #2} : {15 * (#2 + 1)} : {#3-9*#3/10}) -- cycle;
  76. }
  77. \begin{document}
  78. -\begin{tikzpicture}[rotate={-7.5}]
  79. %
  80. \node [above] at (97.5 :5.5 ) {\Large Cercle chromatique} ;
  81. \node [rotate= -90 ] at ( 7.5 :5 ) {Rouge};
  82. \node [rotate= -30 ] at ( 67.5 :5 ) {Jaune};
  83. \node [rotate= 30 ] at ( 127.5 :5 ) {Vert};
  84. \node [rotate= 90 ] at ( 187.5 :5 ) {Cyan};
  85. \node [rotate= 150 ] at ( 247.5 :5 ) {Bleu};
  86. \node [rotate= 210 ] at ( 307.5 :5 ) {Magenta};
  87. \node[rotate= -90 ] at ( 7.5 :4.3) {\footnotesize 0 } ;
  88. \node[rotate= -75 ] at ( 22.5 :4.3) {\footnotesize 15 } ;
  89. \node[rotate= -60 ] at ( 37.5 :4.3) {\footnotesize 30 } ;
  90. \node[rotate= -45 ] at ( 52.5 :4.3) {\footnotesize 45 } ;
  91. \node[rotate= -30 ] at ( 67.5 :4.3) {\footnotesize 60 } ;
  92. \node[rotate= -15 ] at ( 82.5 :4.3) {\footnotesize 75 } ;
  93. \node[rotate= 0 ] at ( 97.5 :4.3) {\footnotesize 90 } ;
  94. \node[rotate= 15 ] at ( 112.5 :4.3) {\footnotesize 105 } ;
  95. \node[rotate= 30 ] at ( 127.5 :4.3) {\footnotesize 120 } ;
  96. \node[rotate= 45 ] at ( 142.5 :4.3) {\footnotesize 135 } ;
  97. \node[rotate= 60 ] at ( 157.5 :4.3) {\footnotesize 150 } ;
  98. \node[rotate= 75 ] at ( 172.5 :4.3) {\footnotesize 165 } ;
  99. \node[rotate= 90 ] at ( 187.5 :4.3) {\footnotesize 180 } ;
  100. \node[rotate= 105 ] at ( 202.5 :4.3) {\footnotesize 195 } ;
  101. \node[rotate= 120 ] at ( 217.5 :4.3) {\footnotesize 210 } ;
  102. \node[rotate= 135 ] at ( 232.5 :4.3) {\footnotesize 225 } ;
  103. \node[rotate= 150 ] at ( 247.5 :4.3) {\footnotesize 240 } ;
  104. \node[rotate= 165 ] at ( 262.5 :4.3) {\footnotesize 255 } ;
  105. \node[rotate= 180 ] at ( 277.5 :4.3) {\footnotesize 270 } ;
  106. \node[rotate= 195 ] at ( 292.5 :4.3) {\footnotesize 285 } ;
  107. \node[rotate= 210 ] at ( 307.5 :4.3) {\footnotesize 300 } ;
  108. \node[rotate= 225 ] at ( 322.5 :4.3) {\footnotesize 315 } ;
  109. \node[rotate= 240 ] at ( 337.5 :4.3) {\footnotesize 330 } ;
  110. \node[rotate= 255 ] at ( 352.5 :4.3) {\footnotesize 345 } ;
  111. \sector{hsb0}{0 }{4cm }
  112. \sector{hsb15}{1 }{4cm }
  113. \sector{hsb30}{2 }{4cm }
  114. \sector{hsb45}{3 }{4cm }
  115. \sector{hsb60}{4 }{4cm }
  116. \sector{hsb75}{5 }{4cm }
  117. \sector{hsb90}{6 }{4cm }
  118. \sector{hsb105}{7 }{4cm }
  119. \sector{hsb120}{8 }{4cm }
  120. \sector{hsb135}{9 }{4cm }
  121. \sector{hsb150}{10 }{4cm }
  122. \sector{hsb165}{11 }{4cm }
  123. \sector{hsb180}{12 }{4cm }
  124. \sector{hsb195}{13 }{4cm }
  125. \sector{hsb210}{14 }{4cm }
  126. \sector{hsb225}{15 }{4cm }
  127. \sector{hsb240}{16 }{4cm }
  128. \sector{hsb255}{17 }{4cm }
  129. \sector{hsb270}{18 }{4cm }
  130. \sector{hsb285}{19 }{4cm }
  131. \sector{hsb300}{20 }{4cm }
  132. \sector{hsb315}{21 }{4cm }
  133. \sector{hsb330}{22 }{4cm }
  134. \sector{hsb345}{23 }{4cm }
  135. \end{tikzpicture}
  136. \end{document}