Color.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Color" category="Built-In Types" version="3.1">
  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 &gt; 1.
  8. You can also create a color from standardized color names by using [method @GDScript.ColorN].
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. <method name="Color">
  16. <return type="Color">
  17. </return>
  18. <argument index="0" name="from" type="String">
  19. </argument>
  20. <description>
  21. Constructs a color from an HTML hexadecimal color string in ARGB or RGB format. See also [method @GDScript.ColorN].
  22. [codeblock]
  23. # Each of the following creates the same color RGBA(178, 217, 10, 255)
  24. var c1 = Color("#ffb2d90a") # ARGB format with '#'
  25. var c2 = Color("ffb2d90a") # ARGB format
  26. var c3 = Color("#b2d90a") # RGB format with '#'
  27. var c4 = Color("b2d90a") # RGB format
  28. [/codeblock]
  29. </description>
  30. </method>
  31. <method name="Color">
  32. <return type="Color">
  33. </return>
  34. <argument index="0" name="from" type="int">
  35. </argument>
  36. <description>
  37. Constructs a color from a 32-bit integer (each byte represents a component of the RGBA profile).
  38. [codeblock]
  39. var c = Color(274) # Equivalent to RGBA(0, 0, 1, 18)
  40. [/codeblock]
  41. </description>
  42. </method>
  43. <method name="Color">
  44. <return type="Color">
  45. </return>
  46. <argument index="0" name="r" type="float">
  47. </argument>
  48. <argument index="1" name="g" type="float">
  49. </argument>
  50. <argument index="2" name="b" type="float">
  51. </argument>
  52. <description>
  53. Constructs a color from an RGB profile using values between 0 and 1. Alpha will always be 1.
  54. [codeblock]
  55. var c = Color(0.2, 1.0, 0.7) # Equivalent to RGBA(51, 255, 178, 255)
  56. [/codeblock]
  57. </description>
  58. </method>
  59. <method name="Color">
  60. <return type="Color">
  61. </return>
  62. <argument index="0" name="r" type="float">
  63. </argument>
  64. <argument index="1" name="g" type="float">
  65. </argument>
  66. <argument index="2" name="b" type="float">
  67. </argument>
  68. <argument index="3" name="a" type="float">
  69. </argument>
  70. <description>
  71. Constructs a color from an RGBA profile using values between 0 and 1.
  72. [codeblock]
  73. var c = Color(0.2, 1.0, 0.7, 0.8) # Equivalent to RGBA(51, 255, 178, 204)
  74. [/codeblock]
  75. </description>
  76. </method>
  77. <method name="blend">
  78. <return type="Color">
  79. </return>
  80. <argument index="0" name="over" type="Color">
  81. </argument>
  82. <description>
  83. 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.
  84. [codeblock]
  85. var bg = Color(0.0, 1.0, 0.0, 0.5) # Green with alpha of 50%
  86. var fg = Color(1.0, 0.0, 0.0, 0.5) # Red with alpha of 50%
  87. var blended_color = bg.blend(fg) # Brown with alpha of 75%
  88. [/codeblock]
  89. </description>
  90. </method>
  91. <method name="contrasted">
  92. <return type="Color">
  93. </return>
  94. <description>
  95. Returns the most contrasting color.
  96. [codeblock]
  97. var c = Color(0.3, 0.4, 0.9)
  98. var contrasted_color = c.contrasted() # Equivalent to RGBA(204, 229, 102, 255)
  99. [/codeblock]
  100. </description>
  101. </method>
  102. <method name="darkened">
  103. <return type="Color">
  104. </return>
  105. <argument index="0" name="amount" type="float">
  106. </argument>
  107. <description>
  108. Returns a new color resulting from making this color darker by the specified percentage (ratio from 0 to 1).
  109. [codeblock]
  110. var green = Color(0.0, 1.0, 0.0)
  111. var darkgreen = green.darkened(0.2) # 20% darker than regular green
  112. [/codeblock]
  113. </description>
  114. </method>
  115. <method name="from_hsv">
  116. <return type="Color">
  117. </return>
  118. <argument index="0" name="h" type="float">
  119. </argument>
  120. <argument index="1" name="s" type="float">
  121. </argument>
  122. <argument index="2" name="v" type="float">
  123. </argument>
  124. <argument index="3" name="a" type="float" default="1">
  125. </argument>
  126. <description>
  127. Constructs a color from an HSV profile. [code]h[/code], [code]s[/code], and [code]v[/code] are values between 0 and 1.
  128. [codeblock]
  129. 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)
  130. [/codeblock]
  131. </description>
  132. </method>
  133. <method name="gray">
  134. <return type="float">
  135. </return>
  136. <description>
  137. Returns the color's grayscale representation.
  138. The gray value is calculated as [code](r + g + b) / 3[/code].
  139. [codeblock]
  140. var c = Color(0.2, 0.45, 0.82)
  141. var gray = c.gray() # a value of 0.466667
  142. [/codeblock]
  143. </description>
  144. </method>
  145. <method name="inverted">
  146. <return type="Color">
  147. </return>
  148. <description>
  149. Returns the inverted color [code](1 - r, 1 - g, 1 - b, 1 - a)[/code].
  150. [codeblock]
  151. var c = Color(0.3, 0.4, 0.9)
  152. var inverted_color = c.inverted() # a color of an RGBA(178, 153, 26, 255)
  153. [/codeblock]
  154. </description>
  155. </method>
  156. <method name="lightened">
  157. <return type="Color">
  158. </return>
  159. <argument index="0" name="amount" type="float">
  160. </argument>
  161. <description>
  162. Returns a new color resulting from making this color lighter by the specified percentage (ratio from 0 to 1).
  163. [codeblock]
  164. var green = Color(0.0, 1.0, 0.0)
  165. var lightgreen = green.lightened(0.2) # 20% lighter than regular green
  166. [/codeblock]
  167. </description>
  168. </method>
  169. <method name="linear_interpolate">
  170. <return type="Color">
  171. </return>
  172. <argument index="0" name="b" type="Color">
  173. </argument>
  174. <argument index="1" name="t" type="float">
  175. </argument>
  176. <description>
  177. Returns the linear interpolation with another color. The interpolation factor [code]t[/code] is between 0 and 1.
  178. [codeblock]
  179. var c1 = Color(1.0, 0.0, 0.0)
  180. var c2 = Color(0.0, 1.0, 0.0)
  181. var li_c = c1.linear_interpolate(c2, 0.5) # a color of an RGBA(128, 128, 0, 255)
  182. [/codeblock]
  183. </description>
  184. </method>
  185. <method name="to_abgr32">
  186. <return type="int">
  187. </return>
  188. <description>
  189. 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.
  190. [codeblock]
  191. var c = Color(1, 0.5, 0.2)
  192. print(c.to_abgr32()) # Prints 4281565439
  193. [/codeblock]
  194. </description>
  195. </method>
  196. <method name="to_abgr64">
  197. <return type="int">
  198. </return>
  199. <description>
  200. 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.
  201. [codeblock]
  202. var c = Color(1, 0.5, 0.2)
  203. print(c.to_abgr64()) # Prints -225178692812801
  204. [/codeblock]
  205. </description>
  206. </method>
  207. <method name="to_argb32">
  208. <return type="int">
  209. </return>
  210. <description>
  211. 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.
  212. [codeblock]
  213. var c = Color(1, 0.5, 0.2)
  214. print(c.to_argb32()) # Prints 4294934323
  215. [/codeblock]
  216. </description>
  217. </method>
  218. <method name="to_argb64">
  219. <return type="int">
  220. </return>
  221. <description>
  222. 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.
  223. [codeblock]
  224. var c = Color(1, 0.5, 0.2)
  225. print(c.to_argb64()) # Prints -2147470541
  226. [/codeblock]
  227. </description>
  228. </method>
  229. <method name="to_html">
  230. <return type="String">
  231. </return>
  232. <argument index="0" name="with_alpha" type="bool" default="True">
  233. </argument>
  234. <description>
  235. Returns the color's HTML hexadecimal color string in ARGB format (ex: [code]ff34f822[/code]).
  236. Setting [code]with_alpha[/code] to [code]false[/code] excludes alpha from the hexadecimal string.
  237. [codeblock]
  238. var c = Color(1, 1, 1, 0.5)
  239. var s1 = c.to_html() # Results "7fffffff"
  240. var s2 = c.to_html(false) # Results 'ffffff'
  241. [/codeblock]
  242. </description>
  243. </method>
  244. <method name="to_rgba32">
  245. <return type="int">
  246. </return>
  247. <description>
  248. 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.
  249. [codeblock]
  250. var c = Color(1, 0.5, 0.2)
  251. print(c.to_rgba32()) # Prints 4286526463
  252. [/codeblock]
  253. </description>
  254. </method>
  255. <method name="to_rgba64">
  256. <return type="int">
  257. </return>
  258. <description>
  259. 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.
  260. [codeblock]
  261. var c = Color(1, 0.5, 0.2)
  262. print(c.to_rgba64()) # Prints -140736629309441
  263. [/codeblock]
  264. </description>
  265. </method>
  266. </methods>
  267. <members>
  268. <member name="a" type="float" setter="" getter="">
  269. Alpha value (range 0 to 1).
  270. </member>
  271. <member name="a8" type="int" setter="" getter="">
  272. Alpha value (range 0 to 255).
  273. </member>
  274. <member name="b" type="float" setter="" getter="">
  275. Blue value (range 0 to 1).
  276. </member>
  277. <member name="b8" type="int" setter="" getter="">
  278. Blue value (range 0 to 255).
  279. </member>
  280. <member name="g" type="float" setter="" getter="">
  281. Green value (range 0 to 1).
  282. </member>
  283. <member name="g8" type="int" setter="" getter="">
  284. Green value (range 0 to 255).
  285. </member>
  286. <member name="h" type="float" setter="" getter="">
  287. HSV hue value (range 0 to 1).
  288. </member>
  289. <member name="r" type="float" setter="" getter="">
  290. Red value (range 0 to 1).
  291. </member>
  292. <member name="r8" type="int" setter="" getter="">
  293. Red value (range 0 to 255).
  294. </member>
  295. <member name="s" type="float" setter="" getter="">
  296. HSV saturation value (range 0 to 1).
  297. </member>
  298. <member name="v" type="float" setter="" getter="">
  299. HSV value (range 0 to 1).
  300. </member>
  301. </members>
  302. <constants>
  303. <constant name="gray" value="Color( 0.75, 0.75, 0.75, 1 )">
  304. </constant>
  305. <constant name="aliceblue" value="Color( 0.94, 0.97, 1, 1 )">
  306. </constant>
  307. <constant name="antiquewhite" value="Color( 0.98, 0.92, 0.84, 1 )">
  308. </constant>
  309. <constant name="aqua" value="Color( 0, 1, 1, 1 )">
  310. </constant>
  311. <constant name="aquamarine" value="Color( 0.5, 1, 0.83, 1 )">
  312. </constant>
  313. <constant name="azure" value="Color( 0.94, 1, 1, 1 )">
  314. </constant>
  315. <constant name="beige" value="Color( 0.96, 0.96, 0.86, 1 )">
  316. </constant>
  317. <constant name="bisque" value="Color( 1, 0.89, 0.77, 1 )">
  318. </constant>
  319. <constant name="black" value="Color( 0, 0, 0, 1 )">
  320. </constant>
  321. <constant name="blanchedalmond" value="Color( 1, 0.92, 0.8, 1 )">
  322. </constant>
  323. <constant name="blue" value="Color( 0, 0, 1, 1 )">
  324. </constant>
  325. <constant name="blueviolet" value="Color( 0.54, 0.17, 0.89, 1 )">
  326. </constant>
  327. <constant name="brown" value="Color( 0.65, 0.16, 0.16, 1 )">
  328. </constant>
  329. <constant name="burlywood" value="Color( 0.87, 0.72, 0.53, 1 )">
  330. </constant>
  331. <constant name="cadetblue" value="Color( 0.37, 0.62, 0.63, 1 )">
  332. </constant>
  333. <constant name="chartreuse" value="Color( 0.5, 1, 0, 1 )">
  334. </constant>
  335. <constant name="chocolate" value="Color( 0.82, 0.41, 0.12, 1 )">
  336. </constant>
  337. <constant name="coral" value="Color( 1, 0.5, 0.31, 1 )">
  338. </constant>
  339. <constant name="cornflower" value="Color( 0.39, 0.58, 0.93, 1 )">
  340. </constant>
  341. <constant name="cornsilk" value="Color( 1, 0.97, 0.86, 1 )">
  342. </constant>
  343. <constant name="crimson" value="Color( 0.86, 0.08, 0.24, 1 )">
  344. </constant>
  345. <constant name="cyan" value="Color( 0, 1, 1, 1 )">
  346. </constant>
  347. <constant name="darkblue" value="Color( 0, 0, 0.55, 1 )">
  348. </constant>
  349. <constant name="darkcyan" value="Color( 0, 0.55, 0.55, 1 )">
  350. </constant>
  351. <constant name="darkgoldenrod" value="Color( 0.72, 0.53, 0.04, 1 )">
  352. </constant>
  353. <constant name="darkgray" value="Color( 0.66, 0.66, 0.66, 1 )">
  354. </constant>
  355. <constant name="darkgreen" value="Color( 0, 0.39, 0, 1 )">
  356. </constant>
  357. <constant name="darkkhaki" value="Color( 0.74, 0.72, 0.42, 1 )">
  358. </constant>
  359. <constant name="darkmagenta" value="Color( 0.55, 0, 0.55, 1 )">
  360. </constant>
  361. <constant name="darkolivegreen" value="Color( 0.33, 0.42, 0.18, 1 )">
  362. </constant>
  363. <constant name="darkorange" value="Color( 1, 0.55, 0, 1 )">
  364. </constant>
  365. <constant name="darkorchid" value="Color( 0.6, 0.2, 0.8, 1 )">
  366. </constant>
  367. <constant name="darkred" value="Color( 0.55, 0, 0, 1 )">
  368. </constant>
  369. <constant name="darksalmon" value="Color( 0.91, 0.59, 0.48, 1 )">
  370. </constant>
  371. <constant name="darkseagreen" value="Color( 0.56, 0.74, 0.56, 1 )">
  372. </constant>
  373. <constant name="darkslateblue" value="Color( 0.28, 0.24, 0.55, 1 )">
  374. </constant>
  375. <constant name="darkslategray" value="Color( 0.18, 0.31, 0.31, 1 )">
  376. </constant>
  377. <constant name="darkturquoise" value="Color( 0, 0.81, 0.82, 1 )">
  378. </constant>
  379. <constant name="darkviolet" value="Color( 0.58, 0, 0.83, 1 )">
  380. </constant>
  381. <constant name="deeppink" value="Color( 1, 0.08, 0.58, 1 )">
  382. </constant>
  383. <constant name="deepskyblue" value="Color( 0, 0.75, 1, 1 )">
  384. </constant>
  385. <constant name="dimgray" value="Color( 0.41, 0.41, 0.41, 1 )">
  386. </constant>
  387. <constant name="dodgerblue" value="Color( 0.12, 0.56, 1, 1 )">
  388. </constant>
  389. <constant name="firebrick" value="Color( 0.7, 0.13, 0.13, 1 )">
  390. </constant>
  391. <constant name="floralwhite" value="Color( 1, 0.98, 0.94, 1 )">
  392. </constant>
  393. <constant name="forestgreen" value="Color( 0.13, 0.55, 0.13, 1 )">
  394. </constant>
  395. <constant name="fuchsia" value="Color( 1, 0, 1, 1 )">
  396. </constant>
  397. <constant name="gainsboro" value="Color( 0.86, 0.86, 0.86, 1 )">
  398. </constant>
  399. <constant name="ghostwhite" value="Color( 0.97, 0.97, 1, 1 )">
  400. </constant>
  401. <constant name="gold" value="Color( 1, 0.84, 0, 1 )">
  402. </constant>
  403. <constant name="goldenrod" value="Color( 0.85, 0.65, 0.13, 1 )">
  404. </constant>
  405. <constant name="green" value="Color( 0, 1, 0, 1 )">
  406. </constant>
  407. <constant name="greenyellow" value="Color( 0.68, 1, 0.18, 1 )">
  408. </constant>
  409. <constant name="honeydew" value="Color( 0.94, 1, 0.94, 1 )">
  410. </constant>
  411. <constant name="hotpink" value="Color( 1, 0.41, 0.71, 1 )">
  412. </constant>
  413. <constant name="indianred" value="Color( 0.8, 0.36, 0.36, 1 )">
  414. </constant>
  415. <constant name="indigo" value="Color( 0.29, 0, 0.51, 1 )">
  416. </constant>
  417. <constant name="ivory" value="Color( 1, 1, 0.94, 1 )">
  418. </constant>
  419. <constant name="khaki" value="Color( 0.94, 0.9, 0.55, 1 )">
  420. </constant>
  421. <constant name="lavender" value="Color( 0.9, 0.9, 0.98, 1 )">
  422. </constant>
  423. <constant name="lavenderblush" value="Color( 1, 0.94, 0.96, 1 )">
  424. </constant>
  425. <constant name="lawngreen" value="Color( 0.49, 0.99, 0, 1 )">
  426. </constant>
  427. <constant name="lemonchiffon" value="Color( 1, 0.98, 0.8, 1 )">
  428. </constant>
  429. <constant name="lightblue" value="Color( 0.68, 0.85, 0.9, 1 )">
  430. </constant>
  431. <constant name="lightcoral" value="Color( 0.94, 0.5, 0.5, 1 )">
  432. </constant>
  433. <constant name="lightcyan" value="Color( 0.88, 1, 1, 1 )">
  434. </constant>
  435. <constant name="lightgoldenrod" value="Color( 0.98, 0.98, 0.82, 1 )">
  436. </constant>
  437. <constant name="lightgray" value="Color( 0.83, 0.83, 0.83, 1 )">
  438. </constant>
  439. <constant name="lightgreen" value="Color( 0.56, 0.93, 0.56, 1 )">
  440. </constant>
  441. <constant name="lightpink" value="Color( 1, 0.71, 0.76, 1 )">
  442. </constant>
  443. <constant name="lightsalmon" value="Color( 1, 0.63, 0.48, 1 )">
  444. </constant>
  445. <constant name="lightseagreen" value="Color( 0.13, 0.7, 0.67, 1 )">
  446. </constant>
  447. <constant name="lightskyblue" value="Color( 0.53, 0.81, 0.98, 1 )">
  448. </constant>
  449. <constant name="lightslategray" value="Color( 0.47, 0.53, 0.6, 1 )">
  450. </constant>
  451. <constant name="lightsteelblue" value="Color( 0.69, 0.77, 0.87, 1 )">
  452. </constant>
  453. <constant name="lightyellow" value="Color( 1, 1, 0.88, 1 )">
  454. </constant>
  455. <constant name="lime" value="Color( 0, 1, 0, 1 )">
  456. </constant>
  457. <constant name="limegreen" value="Color( 0.2, 0.8, 0.2, 1 )">
  458. </constant>
  459. <constant name="linen" value="Color( 0.98, 0.94, 0.9, 1 )">
  460. </constant>
  461. <constant name="magenta" value="Color( 1, 0, 1, 1 )">
  462. </constant>
  463. <constant name="maroon" value="Color( 0.69, 0.19, 0.38, 1 )">
  464. </constant>
  465. <constant name="mediumaquamarine" value="Color( 0.4, 0.8, 0.67, 1 )">
  466. </constant>
  467. <constant name="mediumblue" value="Color( 0, 0, 0.8, 1 )">
  468. </constant>
  469. <constant name="mediumorchid" value="Color( 0.73, 0.33, 0.83, 1 )">
  470. </constant>
  471. <constant name="mediumpurple" value="Color( 0.58, 0.44, 0.86, 1 )">
  472. </constant>
  473. <constant name="mediumseagreen" value="Color( 0.24, 0.7, 0.44, 1 )">
  474. </constant>
  475. <constant name="mediumslateblue" value="Color( 0.48, 0.41, 0.93, 1 )">
  476. </constant>
  477. <constant name="mediumspringgreen" value="Color( 0, 0.98, 0.6, 1 )">
  478. </constant>
  479. <constant name="mediumturquoise" value="Color( 0.28, 0.82, 0.8, 1 )">
  480. </constant>
  481. <constant name="mediumvioletred" value="Color( 0.78, 0.08, 0.52, 1 )">
  482. </constant>
  483. <constant name="midnightblue" value="Color( 0.1, 0.1, 0.44, 1 )">
  484. </constant>
  485. <constant name="mintcream" value="Color( 0.96, 1, 0.98, 1 )">
  486. </constant>
  487. <constant name="mistyrose" value="Color( 1, 0.89, 0.88, 1 )">
  488. </constant>
  489. <constant name="moccasin" value="Color( 1, 0.89, 0.71, 1 )">
  490. </constant>
  491. <constant name="navajowhite" value="Color( 1, 0.87, 0.68, 1 )">
  492. </constant>
  493. <constant name="navyblue" value="Color( 0, 0, 0.5, 1 )">
  494. </constant>
  495. <constant name="oldlace" value="Color( 0.99, 0.96, 0.9, 1 )">
  496. </constant>
  497. <constant name="olive" value="Color( 0.5, 0.5, 0, 1 )">
  498. </constant>
  499. <constant name="olivedrab" value="Color( 0.42, 0.56, 0.14, 1 )">
  500. </constant>
  501. <constant name="orange" value="Color( 1, 0.65, 0, 1 )">
  502. </constant>
  503. <constant name="orangered" value="Color( 1, 0.27, 0, 1 )">
  504. </constant>
  505. <constant name="orchid" value="Color( 0.85, 0.44, 0.84, 1 )">
  506. </constant>
  507. <constant name="palegoldenrod" value="Color( 0.93, 0.91, 0.67, 1 )">
  508. </constant>
  509. <constant name="palegreen" value="Color( 0.6, 0.98, 0.6, 1 )">
  510. </constant>
  511. <constant name="paleturquoise" value="Color( 0.69, 0.93, 0.93, 1 )">
  512. </constant>
  513. <constant name="palevioletred" value="Color( 0.86, 0.44, 0.58, 1 )">
  514. </constant>
  515. <constant name="papayawhip" value="Color( 1, 0.94, 0.84, 1 )">
  516. </constant>
  517. <constant name="peachpuff" value="Color( 1, 0.85, 0.73, 1 )">
  518. </constant>
  519. <constant name="peru" value="Color( 0.8, 0.52, 0.25, 1 )">
  520. </constant>
  521. <constant name="pink" value="Color( 1, 0.75, 0.8, 1 )">
  522. </constant>
  523. <constant name="plum" value="Color( 0.87, 0.63, 0.87, 1 )">
  524. </constant>
  525. <constant name="powderblue" value="Color( 0.69, 0.88, 0.9, 1 )">
  526. </constant>
  527. <constant name="purple" value="Color( 0.63, 0.13, 0.94, 1 )">
  528. </constant>
  529. <constant name="rebeccapurple" value="Color( 0.4, 0.2, 0.6, 1 )">
  530. </constant>
  531. <constant name="red" value="Color( 1, 0, 0, 1 )">
  532. </constant>
  533. <constant name="rosybrown" value="Color( 0.74, 0.56, 0.56, 1 )">
  534. </constant>
  535. <constant name="royalblue" value="Color( 0.25, 0.41, 0.88, 1 )">
  536. </constant>
  537. <constant name="saddlebrown" value="Color( 0.55, 0.27, 0.07, 1 )">
  538. </constant>
  539. <constant name="salmon" value="Color( 0.98, 0.5, 0.45, 1 )">
  540. </constant>
  541. <constant name="sandybrown" value="Color( 0.96, 0.64, 0.38, 1 )">
  542. </constant>
  543. <constant name="seagreen" value="Color( 0.18, 0.55, 0.34, 1 )">
  544. </constant>
  545. <constant name="seashell" value="Color( 1, 0.96, 0.93, 1 )">
  546. </constant>
  547. <constant name="sienna" value="Color( 0.63, 0.32, 0.18, 1 )">
  548. </constant>
  549. <constant name="silver" value="Color( 0.75, 0.75, 0.75, 1 )">
  550. </constant>
  551. <constant name="skyblue" value="Color( 0.53, 0.81, 0.92, 1 )">
  552. </constant>
  553. <constant name="slateblue" value="Color( 0.42, 0.35, 0.8, 1 )">
  554. </constant>
  555. <constant name="slategray" value="Color( 0.44, 0.5, 0.56, 1 )">
  556. </constant>
  557. <constant name="snow" value="Color( 1, 0.98, 0.98, 1 )">
  558. </constant>
  559. <constant name="springgreen" value="Color( 0, 1, 0.5, 1 )">
  560. </constant>
  561. <constant name="steelblue" value="Color( 0.27, 0.51, 0.71, 1 )">
  562. </constant>
  563. <constant name="tan" value="Color( 0.82, 0.71, 0.55, 1 )">
  564. </constant>
  565. <constant name="teal" value="Color( 0, 0.5, 0.5, 1 )">
  566. </constant>
  567. <constant name="thistle" value="Color( 0.85, 0.75, 0.85, 1 )">
  568. </constant>
  569. <constant name="tomato" value="Color( 1, 0.39, 0.28, 1 )">
  570. </constant>
  571. <constant name="turquoise" value="Color( 0.25, 0.88, 0.82, 1 )">
  572. </constant>
  573. <constant name="violet" value="Color( 0.93, 0.51, 0.93, 1 )">
  574. </constant>
  575. <constant name="webgray" value="Color( 0.5, 0.5, 0.5, 1 )">
  576. </constant>
  577. <constant name="webgreen" value="Color( 0, 0.5, 0, 1 )">
  578. </constant>
  579. <constant name="webmaroon" value="Color( 0.5, 0, 0, 1 )">
  580. </constant>
  581. <constant name="webpurple" value="Color( 0.5, 0, 0.5, 1 )">
  582. </constant>
  583. <constant name="wheat" value="Color( 0.96, 0.87, 0.7, 1 )">
  584. </constant>
  585. <constant name="white" value="Color( 1, 1, 1, 1 )">
  586. </constant>
  587. <constant name="whitesmoke" value="Color( 0.96, 0.96, 0.96, 1 )">
  588. </constant>
  589. <constant name="yellow" value="Color( 1, 1, 0, 1 )">
  590. </constant>
  591. <constant name="yellowgreen" value="Color( 0.6, 0.8, 0.2, 1 )">
  592. </constant>
  593. </constants>
  594. </class>