Skip to content

Color

class cAlgo.API

DesktopCLICloud

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

Definition

public sealed class Color

Namespace: cAlgo.API · Group: Utility

Examples

using cAlgo.API;

namespace cAlgo;

public partial class Test : Indicator
{
    protected override void Initialize()
    {
        Chart.ColorSettings.BackgroundColor = BackgroundColor;
    }

    public override void Calculate(int index)
    {
    }
}
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        api.Chart.ColorSettings.BackgroundColor = api.BackgroundColor
{
  "AccessRights": "None",
  "Parameters": [
    {
      "Name": "BackgroundColor",
      "DisplayName": "Background Color",
      "Type": "Color",
      "DefaultValue": "#168565"
    }
  ]
}

Methods

Name Description
FromArgb 4 overloadsDesktopCLICloudColor Creates a color from alpha, red, green and blue components.
FromHexDesktopCLICloudColor Attempts to convert a hex string to a Color.
FromNameDesktopCLICloudColor Creates a color from the specified name of a predefined color.
ToArgbDesktopCLICloudint Get the 32-bit ARGB color value.
ToHexStringDesktopCLICloudstring Get the hex string representation of the color.

Properties

Name Description
ADesktopCLICloudbyte Gets the alpha component value of the color.
AliceBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF0F8FF.
AntiqueWhiteDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFAEBD7.
AquaDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00FFFF.
AquamarineDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF7FFFD4.
AzureDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF0FFFF.
BDesktopCLICloudbyte Gets the blue component value of the color.
BeigeDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF5F5DC.
BisqueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFE4C4.
BlackDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF000000.
BlanchedAlmondDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFEBCD.
BlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF0000FF.
BlueVioletDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF8A2BE2.
BrownDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFA52A2A.
BurlyWoodDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDEB887.
CadetBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF5F9EA0.
ChartreuseDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF7FFF00.
ChocolateDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFD2691E.
CoralDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF7F50.
CornflowerBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF6495ED.
CornsilkDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFF8DC.
CrimsonDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDC143C.
CyanDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00FFFF.
DarkBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00008B.
DarkCyanDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF008B8B.
DarkGoldenrodDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFB8860B.
DarkGrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFA9A9A9.
DarkGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF006400.
DarkKhakiDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFBDB76B.
DarkMagentaDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF8B008B.
DarkOliveGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF556B2F.
DarkOrangeDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF8C00.
DarkOrchidDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF9932CC.
DarkRedDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF8B0000.
DarkSalmonDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFE9967A.
DarkSeaGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF8FBC8F.
DarkSlateBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF483D8B.
DarkSlateGrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF2F4F4F.
DarkTurquoiseDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00CED1.
DarkVioletDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF9400D3.
DeepPinkDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF1493.
DeepSkyBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00BFFF.
DimGrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF696969.
DodgerBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF1E90FF.
FirebrickDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFB22222.
FloralWhiteDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFAF0.
ForestGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF228B22.
FuchsiaDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF00FF.
GDesktopCLICloudbyte Gets the green component value of the color.
GainsboroDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDCDCDC.
GhostWhiteDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF8F8FF.
GoldDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFD700.
GoldenrodDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDAA520.
GrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF808080.
GreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF008000.
GreenYellowDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFADFF2F.
HoneydewDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF0FFF0.
HotPinkDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF69B4.
IndianRedDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFCD5C5C.
IndigoDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF4B0082.
IvoryDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFFF0.
KhakiDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF0E68C.
LavenderDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFE6E6FA.
LavenderBlushDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFF0F5.
LawnGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF7CFC00.
LemonChiffonDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFACD.
LightBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFADD8E6.
LightCoralDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF08080.
LightCyanDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFE0FFFF.
LightGoldenrodYellowDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFAFAD2.
LightGrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFD3D3D3.
LightGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF90EE90.
LightPinkDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFB6C1.
LightSalmonDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFA07A.
LightSeaGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF20B2AA.
LightSkyBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF87CEFA.
LightSlateGrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF778899.
LightSteelBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFB0C4DE.
LightYellowDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFFE0.
LimeDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00FF00.
LimeGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF32CD32.
LinenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFAF0E6.
MagentaDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF00FF.
MaroonDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF800000.
MediumAquamarineDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF66CDAA.
MediumBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF0000CD.
MediumOrchidDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFBA55D3.
MediumPurpleDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF9370DB.
MediumSeaGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF3CB371.
MediumSlateBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF7B68EE.
MediumSpringGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00FA9A.
MediumTurquoiseDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF48D1CC.
MediumVioletRedDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFC71585
MidnightBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF191970.
MintCreamDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF5FFFA.
MistyRoseDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFE4E1.
MoccasinDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFE4B5.
NavajoWhiteDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFDEAD.
NavyDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF000080.
OldLaceDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFDF5E6.
OliveDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF808000.
OliveDrabDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF6B8E23.
OrangeDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFA500.
OrangeRedDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF4500.
OrchidDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDA70D6.
PaleGoldenrodDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFEEE8AA.
PaleGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF98FB98.
PaleTurquoiseDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFAFEEEE.
PaleVioletRedDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDB7093.
PapayaWhipDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFEFD5.
PeachPuffDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFDAB9.
PeruDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFCD853F.
PinkDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFC0CB.
PlumDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFDDA0DD.
PowderBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFB0E0E6.
PurpleDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF800080.
RDesktopCLICloudbyte Gets the red component value of the color.
RedDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF0000.
RosyBrownDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFBC8F8F.
RoyalBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF4169E1.
SaddleBrownDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF8B4513.
SalmonDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFA8072.
SandyBrownDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF4A460.
SeaGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF2E8B57.
SeaShellDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFF5EE.
SiennaDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFA0522D.
SilverDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFC0C0C0.
SkyBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF87CEEB.
SlateBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF6A5ACD.
SlateGrayDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF708090.
SnowDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFAFA.
SpringGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF00FF7F.
SteelBlueDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF4682B4.
TanDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFD2B48C.
TealDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF008080.
ThistleDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFD8BFD8.
TomatoDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFF6347.
TransparentDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #00FFFFFF.
TurquoiseDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF40E0D0.
VioletDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFEE82EE.
WheatDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF5DEB3.
WhiteDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFFFF.
WhiteSmokeDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFF5F5F5.
YellowDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FFFFFF00.
YellowGreenDesktopCLICloudColor Gets a system-defined color that has an ARGB value of #FF9ACD32.

Fields

Name Description
EmptyDesktopCLICloudColor Represents empty color.