Skip to content

Std graphics color

std:std.graphics.Color

Struct Color#

The Color type provides support for manipulating red, green blue, alpha colors.

Consts
Aluminium Aluminium. Roughly equivalent to New Color( .91, .92, .92 ).
Aluminum Aluminum. Roughly equivalent to New Color( .96,.96,.96 ).
Aqua Aqua. Equivalent to New Color( 0,.9,.4 ).
Asphalt Asphalt. Equivalent to ColorI( 91, 91, 91 ).
Black Black. Equivalent to New Color( 0,0,0 ).
Blood Blood. Equivalent to New Color( .4,0,0 ).
Blue Blue. Equivalent to New Color( 0,0,1 ).
Brass Brass. Equivalent to ColorI( 250, 230, 150 ).
Brick Brick. Equivalent to ColorI( 148, 125, 117 ).
Brown Brown. Equivalent to New Color( .7,.4,.1 ).
C64Black C64Black. Equivalent to New Color( .10,.10,.10 ).
C64Blue C64Blue. Equivalent to New Color( .19,.16,.48 ).
C64Brown C64Brown. Equivalent to New Color( .42,.31,.15 ).
C64Charcoal C64Charcoal. Equivalent to New Color( .26,.26,.26 ).
C64Cyan C64Cyan. Equivalent to New Color( .43,.23,.52 ).
C64DarkBrown C64DarkBrown. Equivalent to New Color( .27,.21,.00 ).
C64Green C64Green. Equivalent to New Color( .33,.56,.25 ).
C64Grey C64Grey. Equivalent to New Color( .41,.42,.43 ).
C64Lime C64Lime. Equivalent to New Color( .59,.82,.52 ).
C64Liver C64Liver. Equivalent to New Color( .41,.20,.18 ).
C64Morello C64Morello. Equivalent to New Color( .42,.36,.71 ).
C64Pink C64Pink. Equivalent to New Color( .58,.40,.35 ).
C64Purple C64Purple. Equivalent to New Color( .43,.23,.52 ).
C64Silver C64Silver. Equivalent to New Color( .58,.58,.58 ).
C64White C64White. Equivalent to New Color( .98,.98,.98 ).
C64Yellow C64Yellow. Equivalent to New Color( .73,.76,.43 ).
Cement Cement. Equivalent to ColorI( 192, 191, 187 ).
Chromium Chromium. Roughly equivalent to New Color( .76,.77,.77 ).
ClayTile ClayTile. Equivalent to ColorI( 200, 124, 101 ).
Coal Coal. Equivalent to ColorI( 50, 50, 50 ).
Cobalt Cobalt. Roughly equivalent to New Color( .83,.82,.81 ).
Concrete Concrete. Equivalent to ColorI( 192, 192, 187 ).
Copper Copper. Roughly equivalent to New Color( .98,.82,.76 ).
Cyan Cyan. Equivalent to New Color( 0,1,1 ).
DarkGrey Dark Grey. Equivalent to New Color( .25,.25,.25 ).
DrySand DrySand. Equivalent to ColorI( 177, 167, 132 ).
ExAqua ExAqua. Equivalent to New Color( .59,.67,.68 ).
ExAvocado ExAvocado. Equivalent to New Color( .55,.69,.12 ).
ExBrown ExBrown. Equivalent to New Color( .62,.31,0 ).
ExBubblegum ExBubblegum. Equivalent to New Color( .83,.36,.61 ).
ExBuff ExBuff. Equivalent to New Color( .84,.77,.64 ).
ExCobble ExCobble. Equivalent to New Color( .47,.38,.33 ).
ExCoffee ExCoffee. Equivalent to New Color( .55,.44,.36 ).
ExCorn ExCorn. Equivalent to New Color( .91,.8,.32 ).
ExDarkGrey ExDarkGrey. Equivalent to New Color( .25,.25,.25 ).
ExDragon ExDragon. Equivalent to New Color( .8,.38,.5 ).
ExEmber ExEmber. Equivalent to New Color( .74,.47,.34 ).
ExForest ExForest. Equivalent to New Color( .17,.31,.21 ).
ExGold ExGold. Equivalent to New Color( .83,.66,.29 ).
ExHoney ExHoney. Equivalent to New Color( .95,.48,.59 ).
ExKhaki ExKhaki. Equivalent to New Color( .59,.56,.39 ).
ExLavender ExLavender. Equivalent to New Color( .6,.67,.83 ).
ExLeaf ExLeaf. Equivalent to New Color( .2,.6,.2 ).
ExLightGrey ExLightGrey. Equivalent to New Color( .75,.75,.75 ).
ExLime ExLime. Equivalent to New Color( .54,.74,.14 ).
ExMango ExMango. Equivalent to New Color( .94,.58,.03 ).
ExMaroon ExMaroon. Equivalent to New Color( .47,.18,.16 ).
ExMint ExMint. Equivalent to New Color( .08,.62,.52 ).
ExMorello ExMorello. Equivalent to New Color( .6,.34,.71 ).
ExNavy ExNavy. Equivalent to New Color( .09,.15,.44 ).
ExNougat ExNougat. Equivalent to New Color( .83,.73,.62 ).
ExOlive ExOlive. Equivalent to New Color( .52,.6,.1 ).
ExOrange ExOrange. Equivalent to New Color( .79,.32,0 ).
ExPeach ExPeach. Equivalent to New Color( 1,.8,.01 ).
ExPhlox ExPhlox. Equivalent to New Color( .52,.25,.51 ).
ExPigeon ExPigeon. Equivalent to New Color( .22,.29,.5 ).
ExPink ExPink. Equivalent to New Color( .79,.44,.72 ).
ExPlum ExPlum. Equivalent to New Color( .36,.2,.36 ).
ExPowder ExPowder. Equivalent to New Color( .72,.78,.94 ).
ExPurple ExPurple. Equivalent to New Color( .41,.13,.48 ).
ExSand ExSand. Equivalent to New Color( .94,.87,.7 ).
ExSewer ExSewer. Equivalent to New Color( .78,.78,.59 ).
ExSilver ExSilver. Equivalent to New Color( .74,.76,.76 ).
ExSky ExSky. Equivalent to New Color( .2,.59,.85 ).
ExSlime ExSlime. Equivalent to New Color( .18,.8,.44 ).
ExTeal ExTeal. Equivalent to New Color( .22,.43,.5 ).
ExTreeTrunk ExTreeTrunk. Equivalent to New Color( .31,.23,.17 ).
ExUmber ExUmber. Equivalent to New Color( .7,.53,0 ).
ExWatermellon ExWatermellon. Equivalent to New Color( .85,.32,.32 ).
ExWetSand ExWetSand. Equivalent to New Color( .73,.66,.48 ).
ExYolk ExYolk. Equivalent to New Color( 1,.65,0 ).
Gold Gold. Roughly equivalent to New Color( 1,.89,.61 ).
Grass Grass. Equivalent to ColorI( 123, 130, 78 ).
Green Green. Equivalent to New Color( 0,1,0 ).
Grey Grey. Equivalent to New Color( .5,.5,.5 ).
HotPink HotPink. Equivalent to New Color( 1,.41,.71 ).
Iron Iron. Equivalent to ColorI( 196, 200, 200 ).
LabBlack LabBlack. Equivalent to New Color( .20,.20,.20 ).
LabBlue LabBlue. Equivalent to New Color( .21,.23,.58 ).
LabBlueFlower LabBlueFlower. Equivalent to New Color( .52,.50,.69 ).
LabBlueSky LabBlueSky. Equivalent to New Color( .38,.47,.61 ).
LabBluishGreen LabBluishGreen. Equivalent to New Color( .40,.72,.66 ).
LabCyan LabCyan. Equivalent to New Color( .03,.52,.63 ).
LabDarkSkin LabDarkSkin. Equivalent to New Color( .45,.32,.26 ).
LabFoliage LabFoliage. Equivalent to New Color( .34,.42,.26 ).
LabGreen LabGreen. Equivalent to New Color( .27,.58,.28 ).
LabLightSkin LabLightSkin. Equivalent to New Color( .76,.58,.50 ).
LabMagenta LabMagenta. Equivalent to New Color( .73,.33,.76 ).
LabModerateRed LabModerateRed. Equivalent to New Color( .75,.35,.38 ).
LabNeutral36 LabNeutral36. Equivalent to New Color( .33,.33,.33 ).
LabNeutral5 LabNeutral5. Equivalent to New Color( .47,.47,.47 ).
LabNeutral65 LabNeutral65. Equivalent to New Color( .62,.62,.62 ).
LabNeutral8 LabNeutral8. Equivalent to New Color( .78,.78,.78 ).
LabOrange LabOrange. Equivalent to New Color( .83,.49,.17 ).
LabOrangeYellow LabOrangeYellow. Equivalent to New Color( .87,.63,.18 ).
LabPurple LabPurple. Equivalent to New Color( .36,.23,.42 ).
LabPurpleRed LabPurpleRed. Equivalent to New Color( .31,.35,.65 ).
LabRed LabRed. Equivalent to New Color( .68,.21,.23 ).
LabWhite LabWhite. Equivalent to New Color( .94,.94,.94 ).
LabYellow LabYellow. Equivalent to New Color( .90,.78,.12 ).
LabYellowGreen LabYellowGreen. Equivalent to New Color( .61,.73,.25 ).
LightGrey Light Grey. Equivalent to New Color( .75,.75,.75 ).
Lime Lime. Equivalent to New Color( .7,1,0 ).
Magenta Magenta. Equivalent to New Color( 1,0,1 ).
Mud Mud. Equivalent to ColorI( 85, 61, 49 ).
Nickel Nickel. Roughly equivalent to New Color( .83,.8,.75 ).
None Transparent black. Equivalent to New Color( 0,0,0,0 ).
Orange Orange. Equivalent to New Color( 1,.5,0 ).
Paint Paint. Equivalent to ColorI( 227, 227, 227 ).
PicoBlack PicoBlack. Equivalent to New Color( .1,.1,.1 ).
PicoBlue PicoBlue. Equivalent to New Color( .1,.16,.32 ).
PicoBrown PicoBrown. Equivalent to New Color( .67,.32,.21 ).
PicoCyan PicoCyan. Equivalent to New Color( .31,.65,.86 ).
PicoDirt PicoDirt. Equivalent to New Color( .37,.34,.3 ).
PicoGreen PicoGreen. Equivalent to New Color( 0,.52,.31 ).
PicoLime PicoLime. Equivalent to New Color( .36,.73,.3 ).
PicoMaroon PicoMaroon. Equivalent to New Color( .49,.14,.32 ).
PicoOrange PicoOrange. Equivalent to New Color( .98,.63,.1 ).
PicoPink PicoPink. Equivalent to New Color( .94,.46,.65 ).
PicoPurple PicoPurple. Equivalent to New Color( .51,.46,.61 ).
PicoRed PicoRed. Equivalent to New Color( .92,.1,.31 ).
PicoSilver PicoSilver. Equivalent to New Color( .76,.76,.77 ).
PicoSkin PicoSkin. Equivalent to New Color( .98,.8,.87 ).
PicoWhite PicoWhite. Equivalent to New Color( .99,.94,.91 ).
PicoYellow PicoYellow. Equivalent to New Color( .96,.92,.18 ).
Pine Pine. Equivalent to New Color( 0,.5,0 ).
Pink Pink. Equivalent to New Color( 1,.75,.8 ).
Platinum Platinum. Roughly equivalent to New Color( .84,.82,.78 ).
Puce Puce. Equivalent to New Color( 1,0,.4 ).
Red Red. Equivalent to New Color( 1,0,0 ).
Rubber Rubber. Equivalent to ColorI( 53, 53, 53 ).
SeaGreen SeaGreen. Roughly equivalent to New Color( .03,.3,.25 ).
Silver Silver. Roughly equivalent to New Color( .99,.98,.96 ).
Skin Skin. Equivalent to New Color( .8,.5,.6 ).
Sky Sky. Equivalent to New Color( 0,.5,1 ).
Snow Snow. Equivalent to ColorI( 243, 243, 243 ).
Steel Steel. Equivalent to New Color( .2,.2,.7 ).
Titanium Titanium. Roughly equivalent to New Color( .76,.73,.7 ).
UIBlue UIBlue. Equivalent to New Color( .0,.4,.9 ).
UIBrown UIBrown. Equivalent to New Color( .62,.31,.01 ).
UIBurntOrange UIBurntOrange. Equivalent to New Color( .79,.31,0 ).
UICharcoal UICharcoal. Equivalent to New Color( .24,.23,.23 ).
UICyan UICyan. Equivalent to New Color( .25,.60,.82 ).
UIDarkBlue UIDarkBlue. Equivalent to New Color( .24,.35,.58 ).
UIDarkGrey UIDarkGrey. Equivalent to New Color( .15,.15,.15 ).
UIDarkOrange UIDarkOrange. Equivalent to New Color( .52,.26,.09 ).
UIFontBlue UIFontBlue. Equivalent to New Color( .11,.57,.96 ).
UIGreen UIGreen. Equivalent to New Color( .2,.6,.19 ).
UILavender UILavender. Equivalent to New Color( .51,.58,.93 ).
UILeaf UILeaf. Equivalent to New Color( .21,.43,.17 ).
UILightGreen UILightGreen. Equivalent to New Color( .32,.80,.31 ).
UILime UILime. Equivalent to New Color( .54,.74,.14 ).
UIMagenta UIMagenta. Equivalent to New Color( .99,.01,.59 ).
UIMango UIMango. Equivalent to New Color( .94,.58,.03 ).
UIOrange UIOrange. Equivalent to New Color( .86,.61,.13 ).
UIPaleBlue UIPaleBlue. Equivalent to New Color( .56,.78,.85 ).
UIPink UIPink. Equivalent to New Color( .90,.44,.72 ).
UIPurple UIPurple. Equivalent to New Color( .61,.36,.72 ).
UIRed UIRed. Equivalent to New Color( .89,.07,.01 ).
UISilver UISilver. Equivalent to New Color( .74,.73,.73 ).
UITeal UITeal. Equivalent to New Color( .18,.65,.52 ).
UIVibrantGreen UIVibrantGreen. Equivalent to New Color( .09,.87,.07 ).
UIYellow UIYellow. Equivalent to New Color( .89,.87,.01 ).
VicAqua VicAqua. Equivalent to New Color( .08,.76,.64 ).
VicBlack VicBlack. Equivalent to New Color( .1,.1,.1 ).
VicBlue VicBlue. Equivalent to New Color( .15,.49,.66 ).
VicBlush VicBlush. Equivalent to New Color( .87,.43,.54 ).
VicBrown VicBrown. Equivalent to New Color( .64,.39,.13 ).
VicBue VicBlue. Equivalent to New Color( 0,.34,.52 ).
VicCandy VicCandy. Equivalent to New Color( .96,.55,.97 ).
VicDirt VicDirt. Equivalent to New Color( .28,.23,.16 ).
VicFire VicFire. Equivalent to New Color( .92,.27,0 ).
VicGreen VicGreen. Equivalent to New Color( .26,.36,.1 ).
VicGrey VicGrey. Equivalent to New Color( .61,.61,.61 ).
VicKhaki VicKhaki. Equivalent to New Color( .67,.61,.2 ).
VicLemon VicLemon. Equivalent to New Color( .96,.88,.41 ).
VicLime VicLime. Equivalent to New Color( .63,.80,.15 ).
VicLiver VicLiver. Equivalent to New Color( .45,.16,.18 ).
VicOil VicOil. Equivalent to New Color( .18,.28,.3 ).
VicOrange VicOrange. Equivalent to New Color( .92,.53,.19 ).
VicPeach VicPeach. Equivalent to New Color( .98,.70,.4 ).
VicPine VicPine. Equivalent to New Color( .06,.36,.2 ).
VicPink VicPink. Equivalent to New Color( .79,.26,.65 ).
VicPurple VicPurple. Equivalent to New Color( .2,.16,.59 ).
VicRed VicRed. Equivalent to New Color( .74,.14,.2 ).
VicRoyal VicRoyal. Equivalent to New Color( .13,.35,.96 ).
VicSea VicSea. Equivalent to New Color( .07,.5,.49 ).
VicSkin VicSkin. Equivalent to New Color( .95,.72,.56 ).
VicSky VicSky. Equivalent to New Color( .19,.63,.94 ).
VicSteel VicSteel. Equivalent to New Color( .69,.86,.92 ).
VicViolet VicViolet. Equivalent to New Color( .6,.39,.97 ).
VicWhite VicWhite. Equivalent to New Color( .96,.96,.96 ).
Violet Violet. Equivalent to New Color( .7,0,1 ).
White White. Equivalent to New Color( 1,1,1 ).
Wood Wood. Equivalent to ColorI( 170, 153, 132 ).
XamAqua XamAqua. Equivalent to New Color( 0,.73,.83 ).
XamBlue XamBlue. Equivalent to New Color( .24,.17,.7 ).
XamBrown XamBrown. Equivalent to New Color( .47,.33,.28 ).
XamCoral XamCoral. Equivalent to New Color( .95,.26,.21 ).
XamEmber XamEmber. Equivalent to New Color( 1,.38,.13 ).
XamGreen XamGreen. Equivalent to New Color( .29,.68,.31 ).
XamLime XamLime. Equivalent to New Color( .8,.86,.22 ).
XamMint XamMint. Equivalent to New Color( .54,.76,.29 ).
XamOrange XamOrange. Equivalent to New Color( 1,.59,.01 ).
XamPeach XamPeach. Equivalent to New Color( 1,.75,.03 ).
XamPine XamPine. Equivalent to New Color( 0,.58,.53 ).
XamPink XamPink. Equivalent to New Color( .91,.11,.38 ).
XamPurple XamPurple. Equivalent to New Color( .61,.15,.69 ).
XamSilver XamSilver. Equivalent to New Color( .61,.61,.61 ).
XamSky XamSky. Equivalent to New Color( .12,.58,.95 ).
XamSteel XamSteel. Equivalent to New Color( .37,.49,.54 ).
XamViolet XamViolet. Equivalent to New Color( .4,.22,.71 ).
XamWater XamWater. Equivalent to New Color( .01,.66,.95 ).
XamYellow XamYellow. Equivalent to New Color( 1,.92,.23 ).
Yellow Yellow. Equivalent to New Color( 1,1,0 ).
Fields
a Alpha component of color.
b Blue component of color.
g Green component of color.
r Red component of color.
Constructors
New Creates a new color.
Properties
A The alpha color component.
B The blue color component.
G The green color component.
R The Red color component.
Methods
Operator * Multiplies the color by another color or value and returns the result.
Operator + Adds another color or value to the color and returns the result.
Operator - Subtracts another color or value from the color and returns the result.
Operator / Divides the color by another color or value and returns the result.
Blend Blends the color with another color and returns the result.
ToABGR Converts the color to 32 bit big endianABGR format.
ToARGB Converts the color to 32 bit big endian ARGB format.
ToBGRA Converts the color to 32 bit big endian BGRA format.
ToRGBA Converts the color to 32 bit big endian RGBA format.
ToString Converts the color to printable string.
Operator To Converts the color to a printable string.
Functions
FromABGR Creates a color from a 32 bit big endian ABGR color.
FromARGB Creates a color from a 32 bit big endian ARGB color.
FromBGRA Creates a color from a 32 bit big endian BGRA color.
FromHSV Creates a color from hue, saturation and value.
FromRGBA Creates a color from a 32 bit big endian RGBA color.
Rnd Creates a random color.