Color.xml 26 KB

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