Color.xml 25 KB

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