microGUI.Drawing.Color

Classes

eColors

Collection of standard colors for use by a Galaxie microGUI application

ColorBase

Internal storage for store what is a color

Color

Represents an ARGB (alpha, red, green, blue) color.

Module Contents

class microGUI.Drawing.Color.eColors

Collection of standard colors for use by a Galaxie microGUI application

See also

AliceBlue: int = 4293982463
AntiqueWhite: int = 4294634455
Aqua: int = 4278255615
Aquamarine: int = 4286578644
Azure: int = 4293984255
Beige: int = 4294309340
Bisque: int = 4294960324
Black: int = 4278190080
BlanchedAlmond: int = 4294962125
Blue: int = 4278190335
BlueViolet: int = 4287245282
Brown: int = 4289014314
BurlyWood: int = 4292786311
CadetBlue: int = 4284456608
Chartreuse: int = 4286578432
Chocolate: int = 4291979550
Coral: int = 4294934352
CornflowerBlue: int = 4284782061
Cornsilk: int = 4294965468
Crimson: int = 4292613180
Cyan: int = 4278255615
DarkBlue: int = 4278190219
DarkCyan: int = 4278225803
DarkGoldenrod: int = 4290283019
DarkGray: int = 4289309097
DarkGreen: int = 4278215680
DarkKhaki: int = 4290623339
DarkMagenta: int = 4287299723
DarkOliveGreen: int = 4283788079
DarkOrange: int = 4294937600
DarkOrchid: int = 4288230092
DarkRed: int = 4287299584
DarkSalmon: int = 4293498490
DarkSeaGreen: int = 4287609999
DarkSlateBlue: int = 4282924427
DarkSlateGray: int = 4281290575
DarkTurquoise: int = 4278243025
DarkViolet: int = 4287889619
DeepPink: int = 4294907027
DeepSkyBlue: int = 4278239231
DimGray: int = 4285098345
DodgerBlue: int = 4280193279
Firebrick: int = 4289864226
FloralWhite: int = 4294966000
ForestGreen: int = 4280453922
Fuchsia: int = 4294902015
Gainsboro: int = 4292664540
GhostWhite: int = 4294506751
Gold: int = 4294956800
Goldenrod: int = 4292519200
Gray: int = 4286611584
Green: int = 4278222848
GreenYellow: int = 4289593135
Honeydew: int = 4293984240
HotPink: int = 4294928820
IndianRed: int = 4291648604
Indigo: int = 4283105410
Ivory: int = 4294967280
Khaki: int = 4293977740
Lavender: int = 4293322490
LavenderBlush: int = 4294963445
LawnGreen: int = 4286381056
LemonChiffon: int = 4294965965
LightBlue: int = 4289583334
LightCoral: int = 4293951616
LightCyan: int = 4292935679
LightGoldenrodYellow: int = 4294638290
LightGray: int = 4292072403
LightGreen: int = 4287688336
LightPink: int = 4294948545
LightSalmon: int = 4294942842
LightSeaGreen: int = 4280332970
LightSkyBlue: int = 4287090426
LightSlateGray: int = 4286023833
LightSteelBlue: int = 4289774814
LightYellow: int = 4294967264
Lime: int = 4278255360
LimeGreen: int = 4281519410
Linen: int = 4294635750
Magenta: int = 4294902015
Maroon: int = 4286578688
MediumAquamarine: int = 4284927402
MediumBlue: int = 4278190285
MediumOrchid: int = 4290401747
MediumPurple: int = 4287852763
MediumSeaGreen: int = 4282168177
MediumSlateBlue: int = 4286277870
MediumSpringGreen: int = 4278254234
MediumTurquoise: int = 4282962380
MediumVioletRed: int = 4291237253
MidnightBlue: int = 4279834992
MintCream: int = 4294311930
MistyRose: int = 4294960353
Moccasin: int = 4294960309
NavajoWhite: int = 4294958765
Navy: int = 4278190208
OldLace: int = 4294833638
Olive: int = 4286611456
OliveDrab: int = 4285238819
Orange: int = 4294944000
OrangeRed: int = 4294919424
Orchid: int = 4292505814
PaleGoldenrod: int = 4293847210
PaleGreen: int = 4288215960
PaleTurquoise: int = 4289720046
PaleVioletRed: int = 4292571283
PapayaWhip: int = 4294963157
PeachPuff: int = 4294957753
Peru: int = 4291659071
Pink: int = 4294951115
Plum: int = 4292714717
PowderBlue: int = 4289781990
Purple: int = 4286578816
Red: int = 4294901760
RosyBrown: int = 4290547599
RoyalBlue: int = 4282477025
SaddleBrown: int = 4287317267
Salmon: int = 4294606962
SandyBrown: int = 4294222944
SeaGreen: int = 4281240407
SeaShell: int = 4294964718
Sienna: int = 4288696877
Silver: int = 4290822336
SkyBlue: int = 4287090411
SlateBlue: int = 4285160141
SlateGray: int = 4285563024
Snow: int = 4294966010
SpringGreen: int = 4278255487
SteelBlue: int = 4282811060
Tan: int = 4291998860
Teal: int = 4278222976
Thistle: int = 4292394968
Tomato: int = 4294927175
Transparent: int = 16777215
Turquoise: int = 4282441936
Violet: int = 4293821166
Wheat: int = 4294303411
White: int = 4294967295
WhiteSmoke: int = 4294309365
Yellow: int = 4294967040
YellowGreen: int = 4288335154
class microGUI.Drawing.Color.ColorBase

Internal storage for store what is a color

R: microGUI.Types.Color.ColorType = 8
G: microGUI.Types.Color.ColorType = 8
B: microGUI.Types.Color.ColorType = 8
A: microGUI.Types.Color.ColorType = 8
class microGUI.Drawing.Color.Color(argb: int or ColorType = Colors.Black)

Represents an ARGB (alpha, red, green, blue) color.

Colors
ColorBase
classmethod FromRGB(red: int, green: int, blue: int)

Creates a Color structure from a tuple like (r, g, b) in that case valid int values are 0 through 255

The alpha value is implicitly 255 (fully opaque).

Parameters:
  • red (int) – The red component. Valid values are 0 through 255.

  • green (int) – The green component. Valid values are 0 through 255.

  • blue (int) – The blue component. Valid values are 0 through 255.

Returns:

The Color that this method creates.

Return type:

Color

classmethod FromARGB(argb: int or tuple)
Options
  • Creates a Color structure from a 32-bit ARGB

  • Creates a Color structure from a tuple like (a, r, g, b) in that case valid int values are 0 through 255

Attention

The byte-ordering of the 32-bit ARGB value is AARRGGBB. The most significant byte (MSB), represented by AA, is the alpha component value. The second, third, and fourth bytes, represented by RR, GG, and BB, respectively, are the color components red, green, and blue, respectively.

Parameters:

argb (tuple or ColorType) – The ColorType 32-bit int value or a tuple

Returns:

The Color that this method creates.

Return type:

Color

classmethod FromCMYK(cyan: int, magenta: int, yellow: int, key: int)

Creates a Color class from the specified 8-bit color values (cyan, magenta, yellow and key pate (black)). The alpha value is implicitly 255 (fully opaque).

Parameters:
  • cyan (int) – The cyan component. Valid values are 0 through 255.

  • magenta (int) – The magenta component. Valid values are 0 through 255.

  • yellow (int) – The yellow component. Valid values are 0 through 255.

  • key (int) – The key plate component. Valid values are 0 through 255.

Returns:

The Color that this method creates.

Return type:

Color

classmethod FromHex(color: str)

Creates a Color class from the specified HTML HEX palette. The alpha value is implicitly 255 (fully opaque).

Parameters:

color (str) – HTML color HEX

Returns:

The Color that this method creates.

Return type:

Color

classmethod ToARGB()

Gets the 32-bit ARGB value of this Color class.

Returns:

The 32-bit ARGB value ColorType of this Color.

Return type:

ColorType