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.

190 lines
9.1KB

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