Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 07:19, 9 July 2018 by Nguyenduyan (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>Color</nowiki> |Description=<nowiki>Represents a color.</nowiki> |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGscriptPa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Color



Represents a color.

Constructors

  • (string value "Value of color", bool ishtmlHex "If true, parse as html style hex, otherwise parse as system named color") - Create color from name
  • (Color color "Base color", int alpha "Alpha part") - Create color from rgb
  • (int red "Red part", int green "Green part", int blue "Blue part") - Create color from rgb
  • (int red "Red part", int green "Green part", int blue "Blue part", int alpha "Alpha part") - Create color from rgb

Methods

  • object this[] { get; }(int index "Index") - Backward-compatible indexer
  • Empty this[] { set; }(int index "Index", object value "Value to set") - Backward-compatible indexer
  • string ToString() - The string representation of the object.

Properties

  • int Alpha { get; } - Get alpha part of color
  • int Blue { get; } - Get blue part of color
  • int Green { get; } - Get green part of color
  • string HtmlRgbaHex { get; } - Get the #xxxxxxxx html encoding of colors
  • string HtmlRgbHex { get; } - Get the #xxxxxx html encoding of colors
  • string ObjectTypeName { get; } - The name of the type of object.
  • int Red { get; } - Get red part of color
  • TypeInformation TypeInformation { get; } - Get information about this class.