Audio plugin host https://kx.studio/carla
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.

juce_Colours.h 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 7 End-User License
  8. Agreement and JUCE Privacy Policy.
  9. End User License Agreement: www.juce.com/juce-7-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. namespace juce
  19. {
  20. //==============================================================================
  21. /**
  22. Contains a set of predefined named colours (mostly standard HTML colours)
  23. @see Colour
  24. @tags{Graphics}
  25. */
  26. namespace Colours
  27. {
  28. const Colour transparentBlack { 0 };
  29. const Colour transparentWhite { 0x00ffffff };
  30. const Colour aliceblue { 0xfff0f8ff };
  31. const Colour antiquewhite { 0xfffaebd7 };
  32. const Colour aqua { 0xff00ffff };
  33. const Colour aquamarine { 0xff7fffd4 };
  34. const Colour azure { 0xfff0ffff };
  35. const Colour beige { 0xfff5f5dc };
  36. const Colour bisque { 0xffffe4c4 };
  37. const Colour black { 0xff000000 };
  38. const Colour blanchedalmond { 0xffffebcd };
  39. const Colour blue { 0xff0000ff };
  40. const Colour blueviolet { 0xff8a2be2 };
  41. const Colour brown { 0xffa52a2a };
  42. const Colour burlywood { 0xffdeb887 };
  43. const Colour cadetblue { 0xff5f9ea0 };
  44. const Colour chartreuse { 0xff7fff00 };
  45. const Colour chocolate { 0xffd2691e };
  46. const Colour coral { 0xffff7f50 };
  47. const Colour cornflowerblue { 0xff6495ed };
  48. const Colour cornsilk { 0xfffff8dc };
  49. const Colour crimson { 0xffdc143c };
  50. const Colour cyan { 0xff00ffff };
  51. const Colour darkblue { 0xff00008b };
  52. const Colour darkcyan { 0xff008b8b };
  53. const Colour darkgoldenrod { 0xffb8860b };
  54. const Colour darkgrey { 0xff555555 };
  55. const Colour darkgreen { 0xff006400 };
  56. const Colour darkkhaki { 0xffbdb76b };
  57. const Colour darkmagenta { 0xff8b008b };
  58. const Colour darkolivegreen { 0xff556b2f };
  59. const Colour darkorange { 0xffff8c00 };
  60. const Colour darkorchid { 0xff9932cc };
  61. const Colour darkred { 0xff8b0000 };
  62. const Colour darksalmon { 0xffe9967a };
  63. const Colour darkseagreen { 0xff8fbc8f };
  64. const Colour darkslateblue { 0xff483d8b };
  65. const Colour darkslategrey { 0xff2f4f4f };
  66. const Colour darkturquoise { 0xff00ced1 };
  67. const Colour darkviolet { 0xff9400d3 };
  68. const Colour deeppink { 0xffff1493 };
  69. const Colour deepskyblue { 0xff00bfff };
  70. const Colour dimgrey { 0xff696969 };
  71. const Colour dodgerblue { 0xff1e90ff };
  72. const Colour firebrick { 0xffb22222 };
  73. const Colour floralwhite { 0xfffffaf0 };
  74. const Colour forestgreen { 0xff228b22 };
  75. const Colour fuchsia { 0xffff00ff };
  76. const Colour gainsboro { 0xffdcdcdc };
  77. const Colour ghostwhite { 0xfff8f8ff };
  78. const Colour gold { 0xffffd700 };
  79. const Colour goldenrod { 0xffdaa520 };
  80. const Colour grey { 0xff808080 };
  81. const Colour green { 0xff008000 };
  82. const Colour greenyellow { 0xffadff2f };
  83. const Colour honeydew { 0xfff0fff0 };
  84. const Colour hotpink { 0xffff69b4 };
  85. const Colour indianred { 0xffcd5c5c };
  86. const Colour indigo { 0xff4b0082 };
  87. const Colour ivory { 0xfffffff0 };
  88. const Colour khaki { 0xfff0e68c };
  89. const Colour lavender { 0xffe6e6fa };
  90. const Colour lavenderblush { 0xfffff0f5 };
  91. const Colour lawngreen { 0xff7cfc00 };
  92. const Colour lemonchiffon { 0xfffffacd };
  93. const Colour lightblue { 0xffadd8e6 };
  94. const Colour lightcoral { 0xfff08080 };
  95. const Colour lightcyan { 0xffe0ffff };
  96. const Colour lightgoldenrodyellow { 0xfffafad2 };
  97. const Colour lightgreen { 0xff90ee90 };
  98. const Colour lightgrey { 0xffd3d3d3 };
  99. const Colour lightpink { 0xffffb6c1 };
  100. const Colour lightsalmon { 0xffffa07a };
  101. const Colour lightseagreen { 0xff20b2aa };
  102. const Colour lightskyblue { 0xff87cefa };
  103. const Colour lightslategrey { 0xff778899 };
  104. const Colour lightsteelblue { 0xffb0c4de };
  105. const Colour lightyellow { 0xffffffe0 };
  106. const Colour lime { 0xff00ff00 };
  107. const Colour limegreen { 0xff32cd32 };
  108. const Colour linen { 0xfffaf0e6 };
  109. const Colour magenta { 0xffff00ff };
  110. const Colour maroon { 0xff800000 };
  111. const Colour mediumaquamarine { 0xff66cdaa };
  112. const Colour mediumblue { 0xff0000cd };
  113. const Colour mediumorchid { 0xffba55d3 };
  114. const Colour mediumpurple { 0xff9370db };
  115. const Colour mediumseagreen { 0xff3cb371 };
  116. const Colour mediumslateblue { 0xff7b68ee };
  117. const Colour mediumspringgreen { 0xff00fa9a };
  118. const Colour mediumturquoise { 0xff48d1cc };
  119. const Colour mediumvioletred { 0xffc71585 };
  120. const Colour midnightblue { 0xff191970 };
  121. const Colour mintcream { 0xfff5fffa };
  122. const Colour mistyrose { 0xffffe4e1 };
  123. const Colour moccasin { 0xffffe4b5 };
  124. const Colour navajowhite { 0xffffdead };
  125. const Colour navy { 0xff000080 };
  126. const Colour oldlace { 0xfffdf5e6 };
  127. const Colour olive { 0xff808000 };
  128. const Colour olivedrab { 0xff6b8e23 };
  129. const Colour orange { 0xffffa500 };
  130. const Colour orangered { 0xffff4500 };
  131. const Colour orchid { 0xffda70d6 };
  132. const Colour palegoldenrod { 0xffeee8aa };
  133. const Colour palegreen { 0xff98fb98 };
  134. const Colour paleturquoise { 0xffafeeee };
  135. const Colour palevioletred { 0xffdb7093 };
  136. const Colour papayawhip { 0xffffefd5 };
  137. const Colour peachpuff { 0xffffdab9 };
  138. const Colour peru { 0xffcd853f };
  139. const Colour pink { 0xffffc0cb };
  140. const Colour plum { 0xffdda0dd };
  141. const Colour powderblue { 0xffb0e0e6 };
  142. const Colour purple { 0xff800080 };
  143. const Colour rebeccapurple { 0xff663399 };
  144. const Colour red { 0xffff0000 };
  145. const Colour rosybrown { 0xffbc8f8f };
  146. const Colour royalblue { 0xff4169e1 };
  147. const Colour saddlebrown { 0xff8b4513 };
  148. const Colour salmon { 0xfffa8072 };
  149. const Colour sandybrown { 0xfff4a460 };
  150. const Colour seagreen { 0xff2e8b57 };
  151. const Colour seashell { 0xfffff5ee };
  152. const Colour sienna { 0xffa0522d };
  153. const Colour silver { 0xffc0c0c0 };
  154. const Colour skyblue { 0xff87ceeb };
  155. const Colour slateblue { 0xff6a5acd };
  156. const Colour slategrey { 0xff708090 };
  157. const Colour snow { 0xfffffafa };
  158. const Colour springgreen { 0xff00ff7f };
  159. const Colour steelblue { 0xff4682b4 };
  160. const Colour tan { 0xffd2b48c };
  161. const Colour teal { 0xff008080 };
  162. const Colour thistle { 0xffd8bfd8 };
  163. const Colour tomato { 0xffff6347 };
  164. const Colour turquoise { 0xff40e0d0 };
  165. const Colour violet { 0xffee82ee };
  166. const Colour wheat { 0xfff5deb3 };
  167. const Colour white { 0xffffffff };
  168. const Colour whitesmoke { 0xfff5f5f5 };
  169. const Colour yellow { 0xffffff00 };
  170. const Colour yellowgreen { 0xff9acd32 };
  171. /** Attempts to look up a string in the list of known colour names, and return
  172. the appropriate colour.
  173. A non-case-sensitive search is made of the list of predefined colours, and
  174. if a match is found, that colour is returned. If no match is found, the
  175. colour passed in as the defaultColour parameter is returned.
  176. */
  177. JUCE_API Colour findColourForName (const String& colourName,
  178. Colour defaultColour);
  179. } // namespace Colours
  180. } // namespace juce