Color.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Color" version="3.3">
  3. <brief_description>
  4. Color in RGBA format using floats on the range of 0 to 1.
  5. </brief_description>
  6. <description>
  7. A color represented by red, green, blue, and alpha (RGBA) components. The alpha component is often used for transparency. Values are in floating-point and usually range from 0 to 1. Some properties (such as CanvasItem.modulate) may accept values greater than 1 (overbright or HDR colors).
  8. You can also create a color from standardized color names by using [method @GDScript.ColorN] or directly using the color constants defined here. The standardized color set is based on the [url=https://en.wikipedia.org/wiki/X11_color_names]X11 color names[/url].
  9. If you want to supply values in a range of 0 to 255, you should use [method @GDScript.Color8].
  10. [b]Note:[/b] In a boolean context, a Color will evaluate to [code]false[/code] if it's equal to [code]Color(0, 0, 0, 1)[/code] (opaque black). Otherwise, a Color will always evaluate to [code]true[/code].
  11. [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/color_constants.png]Color constants cheatsheet[/url]
  12. </description>
  13. <tutorials>
  14. <link title="2D GD Paint Demo">https://godotengine.org/asset-library/asset/517</link>
  15. <link title="Tween Demo">https://godotengine.org/asset-library/asset/146</link>
  16. <link title="GUI Drag And Drop Demo">https://godotengine.org/asset-library/asset/133</link>
  17. </tutorials>
  18. <methods>
  19. <method name="Color">
  20. <return type="Color" />
  21. <argument index="0" name="from" type="String" />
  22. <description>
  23. Constructs a color from an HTML hexadecimal color string in ARGB or RGB format. See also [method @GDScript.ColorN].
  24. [codeblock]
  25. # Each of the following creates the same color RGBA(178, 217, 10, 255).
  26. var c1 = Color("#ffb2d90a") # ARGB format with "#".
  27. var c2 = Color("ffb2d90a") # ARGB format.
  28. var c3 = Color("#b2d90a") # RGB format with "#".
  29. var c4 = Color("b2d90a") # RGB format.
  30. [/codeblock]
  31. </description>
  32. </method>
  33. <method name="Color">
  34. <return type="Color" />
  35. <argument index="0" name="from" type="int" />
  36. <description>
  37. Constructs a color from a 32-bit integer in RGBA format (each byte represents a color channel).
  38. [codeblock]
  39. var c = Color(274) # Similar to Color(0.0, 0.0, 0.004, 0.07)
  40. [/codeblock]
  41. </description>
  42. </method>
  43. <method name="Color">
  44. <return type="Color" />
  45. <argument index="0" name="r" type="float" />
  46. <argument index="1" name="g" type="float" />
  47. <argument index="2" name="b" type="float" />
  48. <description>
  49. Constructs a color from RGB values, typically between 0 and 1. Alpha will be 1.
  50. [codeblock]
  51. var color = Color(0.2, 1.0, 0.7) # Similar to Color8(51, 255, 178, 255)
  52. [/codeblock]
  53. </description>
  54. </method>
  55. <method name="Color">
  56. <return type="Color" />
  57. <argument index="0" name="r" type="float" />
  58. <argument index="1" name="g" type="float" />
  59. <argument index="2" name="b" type="float" />
  60. <argument index="3" name="a" type="float" />
  61. <description>
  62. Constructs a color from RGBA values, typically between 0 and 1.
  63. [codeblock]
  64. var color = Color(0.2, 1.0, 0.7, 0.8) # Similar to Color8(51, 255, 178, 204)
  65. [/codeblock]
  66. </description>
  67. </method>
  68. <method name="blend">
  69. <return type="Color" />
  70. <argument index="0" name="over" type="Color" />
  71. <description>
  72. Returns a new color resulting from blending this color over another. If the color is opaque, the result is also opaque. The second color may have a range of alpha values.
  73. [codeblock]
  74. var bg = Color(0.0, 1.0, 0.0, 0.5) # Green with alpha of 50%
  75. var fg = Color(1.0, 0.0, 0.0, 0.5) # Red with alpha of 50%
  76. var blended_color = bg.blend(fg) # Brown with alpha of 75%
  77. [/codeblock]
  78. </description>
  79. </method>
  80. <method name="contrasted">
  81. <return type="Color" />
  82. <description>
  83. Returns the most contrasting color.
  84. [codeblock]
  85. var c = Color(0.3, 0.4, 0.9)
  86. var contrasted_color = c.contrasted() # Equivalent to RGBA(204, 229, 102, 255)
  87. [/codeblock]
  88. </description>
  89. </method>
  90. <method name="darkened">
  91. <return type="Color" />
  92. <argument index="0" name="amount" type="float" />
  93. <description>
  94. Returns a new color resulting from making this color darker by the specified percentage (ratio from 0 to 1).
  95. [codeblock]
  96. var green = Color(0.0, 1.0, 0.0)
  97. var darkgreen = green.darkened(0.2) # 20% darker than regular green
  98. [/codeblock]
  99. </description>
  100. </method>
  101. <method name="from_hsv">
  102. <return type="Color" />
  103. <argument index="0" name="h" type="float" />
  104. <argument index="1" name="s" type="float" />
  105. <argument index="2" name="v" type="float" />
  106. <argument index="3" name="a" type="float" default="1.0" />
  107. <description>
  108. Constructs a color from an HSV profile. [code]h[/code], [code]s[/code], and [code]v[/code] are values between 0 and 1.
  109. [codeblock]
  110. var c = Color.from_hsv(0.58, 0.5, 0.79, 0.8) # Equivalent to HSV(210, 50, 79, 0.8) or Color8(100, 151, 201, 0.8)
  111. [/codeblock]
  112. </description>
  113. </method>
  114. <method name="gray">
  115. <return type="float" />
  116. <description>
  117. Returns the color's grayscale representation.
  118. The gray value is calculated as [code](r + g + b) / 3[/code].
  119. [codeblock]
  120. var c = Color(0.2, 0.45, 0.82)
  121. var gray = c.gray() # A value of 0.466667
  122. [/codeblock]
  123. </description>
  124. </method>
  125. <method name="inverted">
  126. <return type="Color" />
  127. <description>
  128. Returns the inverted color [code](1 - r, 1 - g, 1 - b, a)[/code].
  129. [codeblock]
  130. var color = Color(0.3, 0.4, 0.9)
  131. var inverted_color = color.inverted() # Equivalent to Color(0.7, 0.6, 0.1)
  132. [/codeblock]
  133. </description>
  134. </method>
  135. <method name="is_equal_approx">
  136. <return type="bool" />
  137. <argument index="0" name="color" type="Color" />
  138. <description>
  139. Returns [code]true[/code] if this color and [code]color[/code] are approximately equal, by running [method @GDScript.is_equal_approx] on each component.
  140. </description>
  141. </method>
  142. <method name="lightened">
  143. <return type="Color" />
  144. <argument index="0" name="amount" type="float" />
  145. <description>
  146. Returns a new color resulting from making this color lighter by the specified percentage (ratio from 0 to 1).
  147. [codeblock]
  148. var green = Color(0.0, 1.0, 0.0)
  149. var lightgreen = green.lightened(0.2) # 20% lighter than regular green
  150. [/codeblock]
  151. </description>
  152. </method>
  153. <method name="linear_interpolate">
  154. <return type="Color" />
  155. <argument index="0" name="to" type="Color" />
  156. <argument index="1" name="weight" type="float" />
  157. <description>
  158. Returns the linear interpolation with another color. The interpolation factor [code]weight[/code] is between 0 and 1.
  159. [codeblock]
  160. var c1 = Color(1.0, 0.0, 0.0)
  161. var c2 = Color(0.0, 1.0, 0.0)
  162. var li_c = c1.linear_interpolate(c2, 0.5) # Equivalent to Color(0.5, 0.5, 0.0)
  163. [/codeblock]
  164. </description>
  165. </method>
  166. <method name="to_abgr32">
  167. <return type="int" />
  168. <description>
  169. Returns the color converted to a 32-bit integer in ABGR format (each byte represents a color channel). ABGR is the reversed version of the default format.
  170. [codeblock]
  171. var color = Color(1, 0.5, 0.2)
  172. print(color.to_abgr32()) # Prints 4281565439
  173. [/codeblock]
  174. </description>
  175. </method>
  176. <method name="to_abgr64">
  177. <return type="int" />
  178. <description>
  179. Returns the color converted to a 64-bit integer in ABGR format (each word represents a color channel). ABGR is the reversed version of the default format.
  180. [codeblock]
  181. var color = Color(1, 0.5, 0.2)
  182. print(color.to_abgr64()) # Prints -225178692812801
  183. [/codeblock]
  184. </description>
  185. </method>
  186. <method name="to_argb32">
  187. <return type="int" />
  188. <description>
  189. Returns the color converted to a 32-bit integer in ARGB format (each byte represents a color channel). ARGB is more compatible with DirectX.
  190. [codeblock]
  191. var color = Color(1, 0.5, 0.2)
  192. print(color.to_argb32()) # Prints 4294934323
  193. [/codeblock]
  194. </description>
  195. </method>
  196. <method name="to_argb64">
  197. <return type="int" />
  198. <description>
  199. Returns the color converted to a 64-bit integer in ARGB format (each word represents a color channel). ARGB is more compatible with DirectX.
  200. [codeblock]
  201. var color = Color(1, 0.5, 0.2)
  202. print(color.to_argb64()) # Prints -2147470541
  203. [/codeblock]
  204. </description>
  205. </method>
  206. <method name="to_html">
  207. <return type="String" />
  208. <argument index="0" name="with_alpha" type="bool" default="true" />
  209. <description>
  210. Returns the color's HTML hexadecimal color string in ARGB format (ex: [code]ff34f822[/code]).
  211. Setting [code]with_alpha[/code] to [code]false[/code] excludes alpha from the hexadecimal string.
  212. [codeblock]
  213. var c = Color(1, 1, 1, 0.5)
  214. var s1 = c.to_html() # Returns "7fffffff"
  215. var s2 = c.to_html(false) # Returns "ffffff"
  216. [/codeblock]
  217. </description>
  218. </method>
  219. <method name="to_rgba32">
  220. <return type="int" />
  221. <description>
  222. Returns the color converted to a 32-bit integer in RGBA format (each byte represents a color channel). RGBA is Godot's default format.
  223. [codeblock]
  224. var color = Color(1, 0.5, 0.2)
  225. print(color.to_rgba32()) # Prints 4286526463
  226. [/codeblock]
  227. </description>
  228. </method>
  229. <method name="to_rgba64">
  230. <return type="int" />
  231. <description>
  232. Returns the color converted to a 64-bit integer in RGBA format (each word represents a color channel). RGBA is Godot's default format.
  233. [codeblock]
  234. var color = Color(1, 0.5, 0.2)
  235. print(color.to_rgba64()) # Prints -140736629309441
  236. [/codeblock]
  237. </description>
  238. </method>
  239. </methods>
  240. <members>
  241. <member name="a" type="float" setter="" getter="" default="1.0">
  242. The color's alpha (transparency) component, typically on the range of 0 to 1.
  243. </member>
  244. <member name="a8" type="int" setter="" getter="" default="255">
  245. Wrapper for [member a] that uses the range 0 to 255 instead of 0 to 1.
  246. </member>
  247. <member name="b" type="float" setter="" getter="" default="0.0">
  248. The color's blue component, typically on the range of 0 to 1.
  249. </member>
  250. <member name="b8" type="int" setter="" getter="" default="0">
  251. Wrapper for [member b] that uses the range 0 to 255 instead of 0 to 1.
  252. </member>
  253. <member name="g" type="float" setter="" getter="" default="0.0">
  254. The color's green component, typically on the range of 0 to 1.
  255. </member>
  256. <member name="g8" type="int" setter="" getter="" default="0">
  257. Wrapper for [member g] that uses the range 0 to 255 instead of 0 to 1.
  258. </member>
  259. <member name="h" type="float" setter="" getter="" default="0.0">
  260. The HSV hue of this color, on the range 0 to 1.
  261. </member>
  262. <member name="r" type="float" setter="" getter="" default="0.0">
  263. The color's red component, typically on the range of 0 to 1.
  264. </member>
  265. <member name="r8" type="int" setter="" getter="" default="0">
  266. Wrapper for [member r] that uses the range 0 to 255 instead of 0 to 1.
  267. </member>
  268. <member name="s" type="float" setter="" getter="" default="0.0">
  269. The HSV saturation of this color, on the range 0 to 1.
  270. </member>
  271. <member name="v" type="float" setter="" getter="" default="0.0">
  272. The HSV value (brightness) of this color, on the range 0 to 1.
  273. </member>
  274. </members>
  275. <constants>
  276. <constant name="aliceblue" value="Color( 0.94, 0.97, 1, 1 )">
  277. Alice blue color.
  278. </constant>
  279. <constant name="antiquewhite" value="Color( 0.98, 0.92, 0.84, 1 )">
  280. Antique white color.
  281. </constant>
  282. <constant name="aqua" value="Color( 0, 1, 1, 1 )">
  283. Aqua color.
  284. </constant>
  285. <constant name="aquamarine" value="Color( 0.5, 1, 0.83, 1 )">
  286. Aquamarine color.
  287. </constant>
  288. <constant name="azure" value="Color( 0.94, 1, 1, 1 )">
  289. Azure color.
  290. </constant>
  291. <constant name="beige" value="Color( 0.96, 0.96, 0.86, 1 )">
  292. Beige color.
  293. </constant>
  294. <constant name="bisque" value="Color( 1, 0.89, 0.77, 1 )">
  295. Bisque color.
  296. </constant>
  297. <constant name="black" value="Color( 0, 0, 0, 1 )">
  298. Black color.
  299. </constant>
  300. <constant name="blanchedalmond" value="Color( 1, 0.92, 0.8, 1 )">
  301. Blanche almond color.
  302. </constant>
  303. <constant name="blue" value="Color( 0, 0, 1, 1 )">
  304. Blue color.
  305. </constant>
  306. <constant name="blueviolet" value="Color( 0.54, 0.17, 0.89, 1 )">
  307. Blue violet color.
  308. </constant>
  309. <constant name="brown" value="Color( 0.65, 0.16, 0.16, 1 )">
  310. Brown color.
  311. </constant>
  312. <constant name="burlywood" value="Color( 0.87, 0.72, 0.53, 1 )">
  313. Burly wood color.
  314. </constant>
  315. <constant name="cadetblue" value="Color( 0.37, 0.62, 0.63, 1 )">
  316. Cadet blue color.
  317. </constant>
  318. <constant name="chartreuse" value="Color( 0.5, 1, 0, 1 )">
  319. Chartreuse color.
  320. </constant>
  321. <constant name="chocolate" value="Color( 0.82, 0.41, 0.12, 1 )">
  322. Chocolate color.
  323. </constant>
  324. <constant name="coral" value="Color( 1, 0.5, 0.31, 1 )">
  325. Coral color.
  326. </constant>
  327. <constant name="cornflower" value="Color( 0.39, 0.58, 0.93, 1 )">
  328. Cornflower color.
  329. </constant>
  330. <constant name="cornsilk" value="Color( 1, 0.97, 0.86, 1 )">
  331. Corn silk color.
  332. </constant>
  333. <constant name="crimson" value="Color( 0.86, 0.08, 0.24, 1 )">
  334. Crimson color.
  335. </constant>
  336. <constant name="cyan" value="Color( 0, 1, 1, 1 )">
  337. Cyan color.
  338. </constant>
  339. <constant name="darkblue" value="Color( 0, 0, 0.55, 1 )">
  340. Dark blue color.
  341. </constant>
  342. <constant name="darkcyan" value="Color( 0, 0.55, 0.55, 1 )">
  343. Dark cyan color.
  344. </constant>
  345. <constant name="darkgoldenrod" value="Color( 0.72, 0.53, 0.04, 1 )">
  346. Dark goldenrod color.
  347. </constant>
  348. <constant name="darkgray" value="Color( 0.66, 0.66, 0.66, 1 )">
  349. Dark gray color.
  350. </constant>
  351. <constant name="darkgreen" value="Color( 0, 0.39, 0, 1 )">
  352. Dark green color.
  353. </constant>
  354. <constant name="darkkhaki" value="Color( 0.74, 0.72, 0.42, 1 )">
  355. Dark khaki color.
  356. </constant>
  357. <constant name="darkmagenta" value="Color( 0.55, 0, 0.55, 1 )">
  358. Dark magenta color.
  359. </constant>
  360. <constant name="darkolivegreen" value="Color( 0.33, 0.42, 0.18, 1 )">
  361. Dark olive green color.
  362. </constant>
  363. <constant name="darkorange" value="Color( 1, 0.55, 0, 1 )">
  364. Dark orange color.
  365. </constant>
  366. <constant name="darkorchid" value="Color( 0.6, 0.2, 0.8, 1 )">
  367. Dark orchid color.
  368. </constant>
  369. <constant name="darkred" value="Color( 0.55, 0, 0, 1 )">
  370. Dark red color.
  371. </constant>
  372. <constant name="darksalmon" value="Color( 0.91, 0.59, 0.48, 1 )">
  373. Dark salmon color.
  374. </constant>
  375. <constant name="darkseagreen" value="Color( 0.56, 0.74, 0.56, 1 )">
  376. Dark sea green color.
  377. </constant>
  378. <constant name="darkslateblue" value="Color( 0.28, 0.24, 0.55, 1 )">
  379. Dark slate blue color.
  380. </constant>
  381. <constant name="darkslategray" value="Color( 0.18, 0.31, 0.31, 1 )">
  382. Dark slate gray color.
  383. </constant>
  384. <constant name="darkturquoise" value="Color( 0, 0.81, 0.82, 1 )">
  385. Dark turquoise color.
  386. </constant>
  387. <constant name="darkviolet" value="Color( 0.58, 0, 0.83, 1 )">
  388. Dark violet color.
  389. </constant>
  390. <constant name="deeppink" value="Color( 1, 0.08, 0.58, 1 )">
  391. Deep pink color.
  392. </constant>
  393. <constant name="deepskyblue" value="Color( 0, 0.75, 1, 1 )">
  394. Deep sky blue color.
  395. </constant>
  396. <constant name="dimgray" value="Color( 0.41, 0.41, 0.41, 1 )">
  397. Dim gray color.
  398. </constant>
  399. <constant name="dodgerblue" value="Color( 0.12, 0.56, 1, 1 )">
  400. Dodger blue color.
  401. </constant>
  402. <constant name="firebrick" value="Color( 0.7, 0.13, 0.13, 1 )">
  403. Firebrick color.
  404. </constant>
  405. <constant name="floralwhite" value="Color( 1, 0.98, 0.94, 1 )">
  406. Floral white color.
  407. </constant>
  408. <constant name="forestgreen" value="Color( 0.13, 0.55, 0.13, 1 )">
  409. Forest green color.
  410. </constant>
  411. <constant name="fuchsia" value="Color( 1, 0, 1, 1 )">
  412. Fuchsia color.
  413. </constant>
  414. <constant name="gainsboro" value="Color( 0.86, 0.86, 0.86, 1 )">
  415. Gainsboro color.
  416. </constant>
  417. <constant name="ghostwhite" value="Color( 0.97, 0.97, 1, 1 )">
  418. Ghost white color.
  419. </constant>
  420. <constant name="gold" value="Color( 1, 0.84, 0, 1 )">
  421. Gold color.
  422. </constant>
  423. <constant name="goldenrod" value="Color( 0.85, 0.65, 0.13, 1 )">
  424. Goldenrod color.
  425. </constant>
  426. <constant name="gray" value="Color( 0.75, 0.75, 0.75, 1 )">
  427. Gray color.
  428. </constant>
  429. <constant name="green" value="Color( 0, 1, 0, 1 )">
  430. Green color.
  431. </constant>
  432. <constant name="greenyellow" value="Color( 0.68, 1, 0.18, 1 )">
  433. Green yellow color.
  434. </constant>
  435. <constant name="honeydew" value="Color( 0.94, 1, 0.94, 1 )">
  436. Honeydew color.
  437. </constant>
  438. <constant name="hotpink" value="Color( 1, 0.41, 0.71, 1 )">
  439. Hot pink color.
  440. </constant>
  441. <constant name="indianred" value="Color( 0.8, 0.36, 0.36, 1 )">
  442. Indian red color.
  443. </constant>
  444. <constant name="indigo" value="Color( 0.29, 0, 0.51, 1 )">
  445. Indigo color.
  446. </constant>
  447. <constant name="ivory" value="Color( 1, 1, 0.94, 1 )">
  448. Ivory color.
  449. </constant>
  450. <constant name="khaki" value="Color( 0.94, 0.9, 0.55, 1 )">
  451. Khaki color.
  452. </constant>
  453. <constant name="lavender" value="Color( 0.9, 0.9, 0.98, 1 )">
  454. Lavender color.
  455. </constant>
  456. <constant name="lavenderblush" value="Color( 1, 0.94, 0.96, 1 )">
  457. Lavender blush color.
  458. </constant>
  459. <constant name="lawngreen" value="Color( 0.49, 0.99, 0, 1 )">
  460. Lawn green color.
  461. </constant>
  462. <constant name="lemonchiffon" value="Color( 1, 0.98, 0.8, 1 )">
  463. Lemon chiffon color.
  464. </constant>
  465. <constant name="lightblue" value="Color( 0.68, 0.85, 0.9, 1 )">
  466. Light blue color.
  467. </constant>
  468. <constant name="lightcoral" value="Color( 0.94, 0.5, 0.5, 1 )">
  469. Light coral color.
  470. </constant>
  471. <constant name="lightcyan" value="Color( 0.88, 1, 1, 1 )">
  472. Light cyan color.
  473. </constant>
  474. <constant name="lightgoldenrod" value="Color( 0.98, 0.98, 0.82, 1 )">
  475. Light goldenrod color.
  476. </constant>
  477. <constant name="lightgray" value="Color( 0.83, 0.83, 0.83, 1 )">
  478. Light gray color.
  479. </constant>
  480. <constant name="lightgreen" value="Color( 0.56, 0.93, 0.56, 1 )">
  481. Light green color.
  482. </constant>
  483. <constant name="lightpink" value="Color( 1, 0.71, 0.76, 1 )">
  484. Light pink color.
  485. </constant>
  486. <constant name="lightsalmon" value="Color( 1, 0.63, 0.48, 1 )">
  487. Light salmon color.
  488. </constant>
  489. <constant name="lightseagreen" value="Color( 0.13, 0.7, 0.67, 1 )">
  490. Light sea green color.
  491. </constant>
  492. <constant name="lightskyblue" value="Color( 0.53, 0.81, 0.98, 1 )">
  493. Light sky blue color.
  494. </constant>
  495. <constant name="lightslategray" value="Color( 0.47, 0.53, 0.6, 1 )">
  496. Light slate gray color.
  497. </constant>
  498. <constant name="lightsteelblue" value="Color( 0.69, 0.77, 0.87, 1 )">
  499. Light steel blue color.
  500. </constant>
  501. <constant name="lightyellow" value="Color( 1, 1, 0.88, 1 )">
  502. Light yellow color.
  503. </constant>
  504. <constant name="lime" value="Color( 0, 1, 0, 1 )">
  505. Lime color.
  506. </constant>
  507. <constant name="limegreen" value="Color( 0.2, 0.8, 0.2, 1 )">
  508. Lime green color.
  509. </constant>
  510. <constant name="linen" value="Color( 0.98, 0.94, 0.9, 1 )">
  511. Linen color.
  512. </constant>
  513. <constant name="magenta" value="Color( 1, 0, 1, 1 )">
  514. Magenta color.
  515. </constant>
  516. <constant name="maroon" value="Color( 0.69, 0.19, 0.38, 1 )">
  517. Maroon color.
  518. </constant>
  519. <constant name="mediumaquamarine" value="Color( 0.4, 0.8, 0.67, 1 )">
  520. Medium aquamarine color.
  521. </constant>
  522. <constant name="mediumblue" value="Color( 0, 0, 0.8, 1 )">
  523. Medium blue color.
  524. </constant>
  525. <constant name="mediumorchid" value="Color( 0.73, 0.33, 0.83, 1 )">
  526. Medium orchid color.
  527. </constant>
  528. <constant name="mediumpurple" value="Color( 0.58, 0.44, 0.86, 1 )">
  529. Medium purple color.
  530. </constant>
  531. <constant name="mediumseagreen" value="Color( 0.24, 0.7, 0.44, 1 )">
  532. Medium sea green color.
  533. </constant>
  534. <constant name="mediumslateblue" value="Color( 0.48, 0.41, 0.93, 1 )">
  535. Medium slate blue color.
  536. </constant>
  537. <constant name="mediumspringgreen" value="Color( 0, 0.98, 0.6, 1 )">
  538. Medium spring green color.
  539. </constant>
  540. <constant name="mediumturquoise" value="Color( 0.28, 0.82, 0.8, 1 )">
  541. Medium turquoise color.
  542. </constant>
  543. <constant name="mediumvioletred" value="Color( 0.78, 0.08, 0.52, 1 )">
  544. Medium violet red color.
  545. </constant>
  546. <constant name="midnightblue" value="Color( 0.1, 0.1, 0.44, 1 )">
  547. Midnight blue color.
  548. </constant>
  549. <constant name="mintcream" value="Color( 0.96, 1, 0.98, 1 )">
  550. Mint cream color.
  551. </constant>
  552. <constant name="mistyrose" value="Color( 1, 0.89, 0.88, 1 )">
  553. Misty rose color.
  554. </constant>
  555. <constant name="moccasin" value="Color( 1, 0.89, 0.71, 1 )">
  556. Moccasin color.
  557. </constant>
  558. <constant name="navajowhite" value="Color( 1, 0.87, 0.68, 1 )">
  559. Navajo white color.
  560. </constant>
  561. <constant name="navyblue" value="Color( 0, 0, 0.5, 1 )">
  562. Navy blue color.
  563. </constant>
  564. <constant name="oldlace" value="Color( 0.99, 0.96, 0.9, 1 )">
  565. Old lace color.
  566. </constant>
  567. <constant name="olive" value="Color( 0.5, 0.5, 0, 1 )">
  568. Olive color.
  569. </constant>
  570. <constant name="olivedrab" value="Color( 0.42, 0.56, 0.14, 1 )">
  571. Olive drab color.
  572. </constant>
  573. <constant name="orange" value="Color( 1, 0.65, 0, 1 )">
  574. Orange color.
  575. </constant>
  576. <constant name="orangered" value="Color( 1, 0.27, 0, 1 )">
  577. Orange red color.
  578. </constant>
  579. <constant name="orchid" value="Color( 0.85, 0.44, 0.84, 1 )">
  580. Orchid color.
  581. </constant>
  582. <constant name="palegoldenrod" value="Color( 0.93, 0.91, 0.67, 1 )">
  583. Pale goldenrod color.
  584. </constant>
  585. <constant name="palegreen" value="Color( 0.6, 0.98, 0.6, 1 )">
  586. Pale green color.
  587. </constant>
  588. <constant name="paleturquoise" value="Color( 0.69, 0.93, 0.93, 1 )">
  589. Pale turquoise color.
  590. </constant>
  591. <constant name="palevioletred" value="Color( 0.86, 0.44, 0.58, 1 )">
  592. Pale violet red color.
  593. </constant>
  594. <constant name="papayawhip" value="Color( 1, 0.94, 0.84, 1 )">
  595. Papaya whip color.
  596. </constant>
  597. <constant name="peachpuff" value="Color( 1, 0.85, 0.73, 1 )">
  598. Peach puff color.
  599. </constant>
  600. <constant name="peru" value="Color( 0.8, 0.52, 0.25, 1 )">
  601. Peru color.
  602. </constant>
  603. <constant name="pink" value="Color( 1, 0.75, 0.8, 1 )">
  604. Pink color.
  605. </constant>
  606. <constant name="plum" value="Color( 0.87, 0.63, 0.87, 1 )">
  607. Plum color.
  608. </constant>
  609. <constant name="powderblue" value="Color( 0.69, 0.88, 0.9, 1 )">
  610. Powder blue color.
  611. </constant>
  612. <constant name="purple" value="Color( 0.63, 0.13, 0.94, 1 )">
  613. Purple color.
  614. </constant>
  615. <constant name="rebeccapurple" value="Color( 0.4, 0.2, 0.6, 1 )">
  616. Rebecca purple color.
  617. </constant>
  618. <constant name="red" value="Color( 1, 0, 0, 1 )">
  619. Red color.
  620. </constant>
  621. <constant name="rosybrown" value="Color( 0.74, 0.56, 0.56, 1 )">
  622. Rosy brown color.
  623. </constant>
  624. <constant name="royalblue" value="Color( 0.25, 0.41, 0.88, 1 )">
  625. Royal blue color.
  626. </constant>
  627. <constant name="saddlebrown" value="Color( 0.55, 0.27, 0.07, 1 )">
  628. Saddle brown color.
  629. </constant>
  630. <constant name="salmon" value="Color( 0.98, 0.5, 0.45, 1 )">
  631. Salmon color.
  632. </constant>
  633. <constant name="sandybrown" value="Color( 0.96, 0.64, 0.38, 1 )">
  634. Sandy brown color.
  635. </constant>
  636. <constant name="seagreen" value="Color( 0.18, 0.55, 0.34, 1 )">
  637. Sea green color.
  638. </constant>
  639. <constant name="seashell" value="Color( 1, 0.96, 0.93, 1 )">
  640. Seashell color.
  641. </constant>
  642. <constant name="sienna" value="Color( 0.63, 0.32, 0.18, 1 )">
  643. Sienna color.
  644. </constant>
  645. <constant name="silver" value="Color( 0.75, 0.75, 0.75, 1 )">
  646. Silver color.
  647. </constant>
  648. <constant name="skyblue" value="Color( 0.53, 0.81, 0.92, 1 )">
  649. Sky blue color.
  650. </constant>
  651. <constant name="slateblue" value="Color( 0.42, 0.35, 0.8, 1 )">
  652. Slate blue color.
  653. </constant>
  654. <constant name="slategray" value="Color( 0.44, 0.5, 0.56, 1 )">
  655. Slate gray color.
  656. </constant>
  657. <constant name="snow" value="Color( 1, 0.98, 0.98, 1 )">
  658. Snow color.
  659. </constant>
  660. <constant name="springgreen" value="Color( 0, 1, 0.5, 1 )">
  661. Spring green color.
  662. </constant>
  663. <constant name="steelblue" value="Color( 0.27, 0.51, 0.71, 1 )">
  664. Steel blue color.
  665. </constant>
  666. <constant name="tan" value="Color( 0.82, 0.71, 0.55, 1 )">
  667. Tan color.
  668. </constant>
  669. <constant name="teal" value="Color( 0, 0.5, 0.5, 1 )">
  670. Teal color.
  671. </constant>
  672. <constant name="thistle" value="Color( 0.85, 0.75, 0.85, 1 )">
  673. Thistle color.
  674. </constant>
  675. <constant name="tomato" value="Color( 1, 0.39, 0.28, 1 )">
  676. Tomato color.
  677. </constant>
  678. <constant name="transparent" value="Color( 1, 1, 1, 0 )">
  679. Transparent color (white with no alpha).
  680. </constant>
  681. <constant name="turquoise" value="Color( 0.25, 0.88, 0.82, 1 )">
  682. Turquoise color.
  683. </constant>
  684. <constant name="violet" value="Color( 0.93, 0.51, 0.93, 1 )">
  685. Violet color.
  686. </constant>
  687. <constant name="webgray" value="Color( 0.5, 0.5, 0.5, 1 )">
  688. Web gray color.
  689. </constant>
  690. <constant name="webgreen" value="Color( 0, 0.5, 0, 1 )">
  691. Web green color.
  692. </constant>
  693. <constant name="webmaroon" value="Color( 0.5, 0, 0, 1 )">
  694. Web maroon color.
  695. </constant>
  696. <constant name="webpurple" value="Color( 0.5, 0, 0.5, 1 )">
  697. Web purple color.
  698. </constant>
  699. <constant name="wheat" value="Color( 0.96, 0.87, 0.7, 1 )">
  700. Wheat color.
  701. </constant>
  702. <constant name="white" value="Color( 1, 1, 1, 1 )">
  703. White color.
  704. </constant>
  705. <constant name="whitesmoke" value="Color( 0.96, 0.96, 0.96, 1 )">
  706. White smoke color.
  707. </constant>
  708. <constant name="yellow" value="Color( 1, 1, 0, 1 )">
  709. Yellow color.
  710. </constant>
  711. <constant name="yellowgreen" value="Color( 0.6, 0.8, 0.2, 1 )">
  712. Yellow green color.
  713. </constant>
  714. </constants>
  715. </class>