DataType

# Color

<div class="rst-class">

forsearch

</div>

DataType

<div class="rst-class">

forsearch

</div>

Color

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

The data type for storing <span class="title-ref">Color</span> values with an optional alpha component.

## `Properties</getting_started/using_the_xojo_language/properties>`

<div class="rst-class">

table-centered_column_3

</div>

| Name                           | Type                               | Read-Only |
|--------------------------------|------------------------------------|-----------|
| `Alpha<color.alpha>`           | `Integer</api/data_types/integer>` | ✓         |
| `Blue<color.blue>`             | `Integer</api/data_types/integer>` | ✓         |
| `Cyan<color.cyan>`             | `Double</api/data_types/double>`   | ✓         |
| `Green<color.green>`           | `Integer</api/data_types/integer>` | ✓         |
| `Hue<color.hue>`               | `Double</api/data_types/double>`   | ✓         |
| `Magenta<color.magenta>`       | `Double</api/data_types/double>`   | ✓         |
| `Red<color.red>`               | `Integer</api/data_types/integer>` | ✓         |
| `Saturation<color.saturation>` | `Double</api/data_types/double>`   | ✓         |
| `Value<color.value>`           | `Double</api/data_types/double>`   | ✓         |
| `Yellow<color.yellow>`         | `Double</api/data_types/double>`   | ✓         |

## `Methods</getting_started/using_the_xojo_language/methods>`

<div class="rst-class">

methods-table

</div>

| Name                       | Parameters | Returns                          |
|----------------------------|------------|----------------------------------|
| `ToString<color.tostring>` |            | `String</api/data_types/string>` |

## `Shared Methods</api/language/shared>`

<div class="rst-class">

methods-table

</div>

| Name                                           | Parameters                                                                                                                                                                          | Returns                            |
|------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| `AccentThemeColor<color.accentthemecolor>`     |                                                                                                                                                                                     | Color                              |
| `CMY<color.cmy>`                               | cyan As `Double</api/data_types/double>`, magenta As `Double</api/data_types/double>`, yellow As `Double</api/data_types/double>`, alpha As `Integer</api/data_types/integer>` = 0  | Color                              |
| `DarkBevelColor<color.darkbevelcolor>`         |                                                                                                                                                                                     | Color                              |
| `DarkTingeColor<color.darktingecolor>`         |                                                                                                                                                                                     | Color                              |
| `DisabledTextColor<color.disabledtextcolor>`   |                                                                                                                                                                                     | Color                              |
| `FillColor<color.fillcolor>`                   |                                                                                                                                                                                     | Color                              |
| `FrameColor<color.framecolor>`                 |                                                                                                                                                                                     | Color                              |
| `FromString<color.fromstring>`                 | hexString As `String</api/data_types/string>`                                                                                                                                       | Color                              |
| `HighlightColor<color.highlightcolor>`         |                                                                                                                                                                                     | Color                              |
| `HSV<color.hsv>`                               | hue As `Double</api/data_types/double>`, saturation As `Double</api/data_types/double>`, value As `Double</api/data_types/double>`, alpha As `Integer</api/data_types/integer>` = 0 | Color                              |
| `IsDarkMode<color.isdarkmode>`                 |                                                                                                                                                                                     | `Boolean</api/data_types/boolean>` |
| `LightBevelColor<color.lightbevelcolor>`       |                                                                                                                                                                                     | Color                              |
| `LightTingeColor<color.lighttingecolor>`       |                                                                                                                                                                                     | Color                              |
| `PrimaryThemeColor<color.primarythemecolor>`   |                                                                                                                                                                                     | Color                              |
| `RGB<color.rgb>`                               | red As `Integer</api/data_types/integer>`, green As `Integer</api/data_types/integer>`, blue As `Integer</api/data_types/integer>`, alpha As `Integer</api/data_types/integer>` = 0 | Color                              |
| `SelectedFromDialog<color.selectedfromdialog>` | `ByRef</api/language/byref>` selectedColor As Color, prompt As `String</api/data_types/string>`                                                                                     | `Boolean</api/data_types/boolean>` |
| `SelectedTextColor<color.selectedtextcolor>`   |                                                                                                                                                                                     | Color                              |
| `TextColor<color.textcolor>`                   |                                                                                                                                                                                     | Color                              |

## Constants

> The following class constants can be used to specify a <span class="title-ref">color</span> without having to instantiate a <span class="title-ref">Color</span> object:
>
> | Class Constant |
> |----------------|
> | Black          |
> | Blue           |
> | Brown          |
> | Clear          |
> | Cyan           |
> | DarkGray       |
> | Gray           |
> | Green          |
> | LightGray      |
> | Magenta        |
> | Orange         |
> | Purple         |
> | Red            |
> | Teal           |
> | White          |
> | Yellow         |

## Property descriptions

<div id="color.alpha">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Alpha

**Alpha** As `Integer</api/data_types/integer>`

> The alpha channel is the translucency of the <span class="title-ref">Color</span> represented as an integer between 0 (opaque) and 255 (transparent).
>
> This property is read-only.

<div id="color.blue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Blue

**Blue** As `Integer</api/data_types/integer>`

> The amount (0-255) of blue in the <span class="title-ref">Color</span> (RGB).
>
> This property is read-only.

<div id="color.cyan">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Cyan

**Cyan** As `Double</api/data_types/double>`

> The value of Cyan (0-1) in the <span class="title-ref">Color</span> (CMY).
>
> This property is read-only.

<div id="color.green">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Green

**Green** As `Integer</api/data_types/integer>`

> The amount (0-255) of green in the <span class="title-ref">Color</span> (RGB).
>
> This property is read-only.

<div id="color.hue">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Hue

**Hue** As `Double</api/data_types/double>`

> The value of Hue (0-1) in the <span class="title-ref">Color</span> (HSV).
>
> This property is read-only.

<div id="color.magenta">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Magenta

**Magenta** As `Double</api/data_types/double>`

> The value of Magenta (0-1) in the <span class="title-ref">Color</span> (CMY).
>
> This property is read-only.

<div id="color.red">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Red

**Red** As `Integer</api/data_types/integer>`

> The amount (0-255) of red in the <span class="title-ref">Color</span> (RGB).
>
> This property is read-only.

<div id="color.saturation">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Saturation

**Saturation** As `Double</api/data_types/double>`

> The value of Saturation (0-1) in the <span class="title-ref">Color</span> (HSV).
>
> This property is read-only.

<div id="color.value">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Value

**Value** As `Double</api/data_types/double>`

> The value of Value (0-1) in the <span class="title-ref">Color</span> (HSV).
>
> This property is read-only.

<div id="color.yellow">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.Yellow

**Yellow** As `Double</api/data_types/double>`

> The value of Yellow (0-1) in the <span class="title-ref">Color</span> (CMY).
>
> This property is read-only.

## Method descriptions

<div id="color.accentthemecolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.AccentThemeColor

**AccentThemeColor** As Color

> Returns the <span class="title-ref">Color</span> used to accent items in the interface. This <span class="title-ref">color</span> is set in the OS itself.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is currently not supported for Console and Web projects.
>
> </div>

<div id="color.cmy">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.CMY

**CMY**(cyan As `Double</api/data_types/double>`, magenta As `Double</api/data_types/double>`, yellow As `Double</api/data_types/double>`, alpha As `Integer</api/data_types/integer>` = 0) As Color

> Returns a <span class="title-ref">Color</span> based on the CMY (*cyan*, *magenta*, *yellow*) <span class="title-ref">Color</span> model and the specified level of transparency (*alpha*). Use the new form of the `Picture</api/graphics/picture>` constructor to create pictures that support the alpha channel or convert existing pictures to the new format using the code described in `HasAlphaChannel<picture.hasalphachannel>`.
>
> This method is `shared</api/language/shared>`.
>
> The CMY function returns a <span class="title-ref">Color</span> based on the amounts of Cyan, Magenta, Yellow, and transparency passed. The <span class="title-ref">Color</span> amounts are represented by `doubles</api/data_types/double>` between 0 and 1 and are stored internally as three bytes. The level of transparency is an optional `Integer</api/data_types/integer>` from 0-255. If omitted, it defaults to completely opaque. You can also use either the `RGB<color.rgb>` or `HSV<color.hsv>` models to assign a <span class="title-ref">Color</span> and you can also specify a <span class="title-ref">Color</span> with the RGB model using the `&c</api/language/literals/c>` literal. All alternatives support the optional transparency parameter.
>
> This code uses the CMY function to assign a <span class="title-ref">Color</span>. It is in the Paint event of a `Canvas</api/user_interface/desktop/desktopcanvas>` or a `DesktopWindow</api/user_interface/desktop/desktopwindow>`.
>
> ``` xojo
> Rectangle1.FillColor = Color.CMY(0.35, 0.9, 0.6, 0)
> ```
>
> The following code draws a <span class="title-ref">Color</span> patch in a `Canvas</api/user_interface/desktop/desktopcanvas>` with 75% transparency. With the CMY function, the range is from 0 to 255. Zero is completely opaque and 255 is completely transparent. The code is in the `Paint<desktopcanvas.paint>` event.
>
> ``` xojo
> g.DrawingColor = Color.CMY(0.0, 1.0, 1.0, 255 * 0.75) ' transparency = 75%
>
> g.FillRectangle(0, 70, 200, 50)
> g.DrawingColor = Color.CMY(0.0, 0.0, 0.0)
> g.DrawText("Translucent = 30%", 210, 80)
> ```

<div id="color.darkbevelcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.DarkBevelColor

**DarkBevelColor** As Color

> The currently selected operating systems <span class="title-ref">Color</span> for drawing dark lines in Groupboxes.
>
> This method is `shared</api/language/shared>`.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> This <span class="title-ref">Color</span> value does not change when `IsDarkMode<color.isdarkmode>` is `True</api/language/true>`.
>
> </div>
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Desktop projects.
>
> </div>
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing controls like `GroupBoxes</api/user_interface/desktop/desktopgroupbox>`, use this <span class="title-ref">Color</span> for the dark portions of the object (usually the right and bottom sides of the object).
>
> This value can be changed by the user, so you should access this value in the Paint event handler rather than storing the value.
>
> The following example uses the `LightBevelColor<color.lightbevelcolor>` and DarkBevelColor in a `Canvas</api/user_interface/desktop/desktopcanvas>` object that has a raised 3D look. This code is in the `Paint<desktopcanvas.paint>` event.
>
> ``` xojo
> Const White = &cffffff
> g.DrawingColor = White
> g.DrawLine(1, 1, Canvas1.Width, 1)
> g.DrawLine(1, Canvas1.Height - 1, 1, 1)
> g.DrawingColor = Color.DarkBevelColor
> g.DrawLine(Canvas1.Width - 1, 2, Canvas1.Width-1, Canvas1.Height)
> g.DrawLine(1, Canvas1.Height - 1, Canvas1.Width, Canvas1.Height - 1)
>
> ' fill in the light gray rectangle
> g.DrawingColor = Color.LightBevelColor
> g.FillRectangle(2, 2, Canvas1.Width - 3, Canvas1.Height - 3)
> ```

<div id="color.darktingecolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.DarkTingeColor

**DarkTingeColor** As Color

> The currently selected <span class="title-ref">Color</span> for drawing dark lines inside frames on the bottom and right sides.
>
> This method is `shared</api/language/shared>`.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> This <span class="title-ref">Color</span> value does not change when `IsDarkMode<color.isdarkmode>` is `True</api/language/true>`.
>
> </div>
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Desktop projects.
>
> </div>
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing beveled objects, use this <span class="title-ref">Color</span> for the dark portions of the object (usually the right and bottom sides of the object). In a `CheckBox</api/user_interface/desktop/desktopcheckbox>` control, this <span class="title-ref">Color</span> is used to draw the dark lines that give it the beveled appearance just inside the checkbox on the right and bottom sides.
>
> This value can be changed by the user, so you should access this value in the Paint event handler rather than storing the value.
>
> The following example uses the DarkTingeColor to shade the bottom and right sides of the rectangle.
>
> ``` xojo
> Const White = &cffffff
> g.DrawingColor = White
> g.DrawLine(1, 1, Canvas1.Width, 1)
> g.DrawLine(1, Canvas1.Height - 1, 1, 1)
> g.DrawingColor = Color.DarkTingeColor
> g.DrawLine(Canvas1.Width - 1, 2, Canvas1.Width - 1, Canvas1.Height)
> g.DrawLine(1, Canvas1.Height - 1, Canvas1.Width, Canvas1.Height - 1)
> ' fill in the light gray rectangle
> g.DrawingColor = Color.LightTingeColor
> g.FillRectangle(2, 2, Canvas1.Width - 3, Canvas1.Height - 3)
> ```

<div id="color.disabledtextcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.DisabledTextColor

**DisabledTextColor** As Color

> The currently selected <span class="title-ref">Color</span> for drawing disabled text in a window. By default it is a light gray.
>
> This method is `shared</api/language/shared>`.
>
> This value is useful when you want to assign the system graytext <span class="title-ref">Color</span> to disabled text.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Android and Desktop projects.
>
> </div>
>
> This usage of DisabledTextColor affects the second text string. The code is in the `Paint<desktopcanvas.paint>` event of a `DesktopCanvas</api/user_interface/desktop/desktopcanvas>`.
>
> ``` xojo
> g.DrawText("This is my text", 10,10, 100, False) ' enabled text color
>
> g.DrawingColor = Color.DisabledTextColor
> g.DrawText("This is my text", 10, 50, 100, False) ' disabled text color
> ```

<div id="color.fillcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.FillColor

**FillColor** As Color

> The system's window background <span class="title-ref">Color</span>.
>
> This method is `shared</api/language/shared>`.
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing objects, use this <span class="title-ref">Color</span> to fill the background.
>
> This value can be changed by the user or when the system changes between light and dark modes, so you should use this method in the `Paint<desktopcanvas.paint>` event handler rather than storing the value.
>
> FillColor matches the default Window Background on all platforms, except for macOS in DarkMode. Use `Graphics.ClearRectangle<graphics.clearrectangle>` to properly clear the window so that it's background <span class="title-ref">Color</span> displays when using Dark Mode.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Android and Desktop projects.
>
> </div>
>
> This example uses the system fill <span class="title-ref">Color</span> to set the <span class="title-ref">Color</span> of a square with a 3D "raised" look. The code is in the `Paint<desktopcanvas.paint>` event of a `Canvas</api/user_interface/desktop/desktopcanvas>`.
>
> ``` xojo
> Const White = &cffffff
> Const DarkGray = &c8c8c8c
>
> g.DrawingColor = White
> g.DrawLine(1, 1, Me.Width, 1)
> g.DrawLine(1, Me.Height - 1, 1, 1)
> g.DrawingColor = DarkGray
> g.DrawLine(Me.Width - 1, 2, Me.Width - 1, Me.Height)
> g.DrawLine(1, Me.Height - 1, Me.Width, Me.Height - 1)
>
> ' Fill in using the system Fill color
> g.DrawingColor = Color.FillColor
> g.FillRectangle(2, 2, Me.Width - 3, Me.Height - 3)
> ```

<div id="color.framecolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.FrameColor

**FrameColor** As Color

> The <span class="title-ref">Color</span> used for drawing the outline of a `DesktopUIControl</api/user_interface/desktop/desktopuicontrol>`.
>
> This method is `shared</api/language/shared>`.
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing objects, use this <span class="title-ref">Color</span> for the object's frame. `ListBoxes</api/user_interface/desktop/desktoplistbox>`, for example, use this <span class="title-ref">Color</span> to draw the frame around the `ListBox</api/user_interface/desktop/desktoplistbox>`.
>
> This value can be changed by the user or when the system switches between light and dark modes, so you should use this method in your Paint Event handler rather than storing the value.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Android and Desktop projects.
>
> </div>
>
> This code uses the system FrameColor to draw the bottom and right of this object. The code is in the `Paint<desktopcanvas.paint>` event of the `Canvas</api/user_interface/desktop/desktopcanvas>`.
>
> ``` xojo
> Const White = &cffffff
>
> g.DrawingColor = White
>
> g.DrawLine(1, 1, g.Width, 1)
> g.DrawLine(1, g.Height - 1, 1, 1)
> g.DrawingColor = Color.FrameColor
> g.DrawLine(g.Width - 1, 2, g.Width - 1, g.Height)
> g.DrawLine(1, g.Height - 1, g.Width, g.Height - 1)
> ' Fill in using the system Fill color
> g.DrawingColor = Color.FillColor
> g.FillRectangle(2, 2, g.Width - 3, g.Height - 3)
> ```

<div id="color.fromstring">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.FromString

**FromString**(hexString As `String</api/data_types/string>`) As Color

> Returns a <span class="title-ref">Color</span> from a hex string value.
>
> This method is `shared</api/language/shared>`.

<div id="color.highlightcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.HighlightColor

**HighlightColor** As Color

> Returns the operating system's highlight <span class="title-ref">Color</span>.
>
> This method is `shared</api/language/shared>`.
>
> On Windows, the highlight <span class="title-ref">Color</span> can be modified via the Display Control Panel. On macOS, the highlight <span class="title-ref">Color</span> is set in the General System Preferences panel. On Linux, the highlight <span class="title-ref">Color</span> is affected by the user's Window Manager and themes.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Android and Desktop projects.
>
> </div>
>
> The following example uses the system highlight <span class="title-ref">Color</span> to fill in a rectangle. The code is in the Paint event of a `Canvas</api/user_interface/desktop/desktopcanvas>`.
>
> ``` xojo
> Const White = &cffffff
>
> g.DrawingColor = White
> g.DrawLine(1, 1, g.Width, 1)
> g.DrawLine(1, g.Height - 1, 1, 1)
> g.DrawingColor = Color.DarkBevelColor
> g.DrawLine(g.Width - 1, 2, g.Width - 1, g.Height)
> g.DrawLine(1, g.Height - 1, g.Width, g.Height - 1)
> ' fill in the  rectangle
> g.DrawingColor = Color.HighlightColor
> g.FillRectangle(2, 2, g.Width - 3, g.Height - 3)
> ```

<div id="color.hsv">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.HSV

**HSV**(hue As `Double</api/data_types/double>`, saturation As `Double</api/data_types/double>`, value As `Double</api/data_types/double>`, alpha As `Integer</api/data_types/integer>` = 0) As Color

> Returns a <span class="title-ref">Color</span> from hue, saturation and value. These values are represented by Doubles between 0 and 1.
>
> This method is `shared</api/language/shared>`.
>
> The alpha parameter provides the ability to control transparency and is an integer between 0 and 255. Zero is completely opaque and 255 is transparent. If omitted, the default is 0 (no transparency).
>
> Set a <span class="title-ref">Color</span> using hue, saturation and value:
>
> ``` xojo
> Var c As Color = Color.HSV(0.8, 0.5, 0.75)
> ```

<div id="color.isdarkmode">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.IsDarkMode

**IsDarkMode** As `Boolean</api/data_types/boolean>`

> `True</api/language/true>` when the device is currently in dark mode, otherwise `False</api/language/false>`.
>
> This method is `shared</api/language/shared>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is not supported for Console projects.
>
> </div>

<div id="color.lightbevelcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.LightBevelColor

**LightBevelColor** As Color

> The currently selected operating system <span class="title-ref">Color</span> for drawing light lines in dividing lines and group boxes.
>
> This method is `shared</api/language/shared>`.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> This <span class="title-ref">Color</span> value does not change when `IsDarkMode<color.isdarkmode>` is `True</api/language/true>`.
>
> </div>
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Desktop projects.
>
> </div>
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing controls like `GroupBoxes</api/user_interface/desktop/desktopgroupbox>`, use this <span class="title-ref">Color</span> for the light portions of the object (usually the top and left sides of the object).
>
> This value can be changed by the user, so you should access this value in the Paint event handler rather than storing the value.
>
> The following example uses the methods LightBevelColor and `DarkBevelColor<color.darkbevelcolor>` in a `Canvas</api/user_interface/desktop/desktopcanvas>` object that has a raised 3D look. This code is in the `Canvas.Paint<desktopcanvas.paint>` event.
>
> ``` xojo
> Const White = &cffffff
>
> g.DrawingColor = White
> g.DrawLine(1, 1, g.Width, 1)
> g.DrawLine(1, g.Height - 1, 1, 1)
> g.DrawingColor = Color.DarkBevelColor
> g.DrawLine(g.Width - 1, 2, g.Width - 1, g.Height)
> g.DrawLine(1, g.Height - 1, g.Width, g.Height - 1)
> ' fill in the light gray rectangle
> g.DrawingColor = Color.LightBevelColor
> g.FillRectangle(2, 2, g.Width - 3, g.Height - 3)
> ```

<div id="color.lighttingecolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.LightTingeColor

**LightTingeColor** As Color

> The currently selected operating system <span class="title-ref">Color</span> for drawing light lines inside frames on the top and left sides.
>
> This method is `shared</api/language/shared>`.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> This <span class="title-ref">Color</span> value does not change when `IsDarkMode<color.isdarkmode>` is `True</api/language/true>`.
>
> </div>
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Desktop projects.
>
> </div>
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing beveled objects, use this <span class="title-ref">Color</span> for the light portions of the object (usually the top and left sides of the object). In a `DesktopCheckBox</api/user_interface/desktop/desktopcheckbox>` control, this <span class="title-ref">Color</span> is used to draw the light lines that give it the beveled appearance just inside the checkbox on the top and left sides.
>
> This value can be changed by the user, so you should access this value in the Paint event handler rather than storing the value.
>
> The following example uses the LightTingeColor to shade the top and left sides of the rectangle.
>
> ``` xojo
> Const White = &cffffff
>
> g.DrawingColor = White
> g.DrawLine(1, 1, g.Width, 1)
> g.DrawLine(1, g.Height - 1, 1, 1)
> g.DrawingColor = Color.DarkBevelColor
> g.DrawLine(g.Width - 1, 2, g.Width - 1, g.Height)
> g.DrawLine(1, g.Height - 1, g.Width, g.Height - 1)
> ' fill in the light gray rectangle
> g.DrawingColor = Color.LightTingeColor
> g.FillRectangle(2, 2, g.Width - 3, g.Height - 3)
> ```

<div id="color.primarythemecolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.PrimaryThemeColor

**PrimaryThemeColor** As Color

> Returns the <span class="title-ref">Color</span> used as the primary <span class="title-ref">color</span> in the interface. The background of the navigation bar uses this <span class="title-ref">color</span>. This <span class="title-ref">color</span> is set in the OS itself.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is supported for Android only.
>
> </div>

<div id="color.rgb">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.RGB

**RGB**(red As `Integer</api/data_types/integer>`, green As `Integer</api/data_types/integer>`, blue As `Integer</api/data_types/integer>`, alpha As `Integer</api/data_types/integer>` = 0) As Color

> Returns a <span class="title-ref">Color</span> based on the specified *red*, *green*, *blue* values. The *alpha* parameter provides the ability to control transparency. All values are an integer between 0 and 255. For *alpha*, zero is completely opaque and 255 is transparent. If omitted, the default is 0 (no transparency).
>
> This method is `shared</api/language/shared>`.
>
> Set a <span class="title-ref">Color</span> variable to red:
>
> ``` xojo
> Var red As Color = Color.RGB(255, 0, 0)
> ```
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> If you are using this function to assign colors you are matching from an external source (such as a screenshot), make sure to read the notes about `color matching<color.color_matching>`.
>
> </div>

<div id="color.selectedfromdialog">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.SelectedFromDialog

**SelectedFromDialog**(`ByRef</api/language/byref>` selectedColor As Color, prompt As `String</api/data_types/string>`) As `Boolean</api/data_types/boolean>`

> Displays the system <span class="title-ref">Color</span> Picker, allowing the user to choose a <span class="title-ref">Color</span>.
>
> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> On Windows and Linux, the operating system's <span class="title-ref">color</span> picker window is modal. On macOS, the <span class="title-ref">color</span> picker is not modal.
>
> </div>
>
> This method is `shared</api/language/shared>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Desktop projects.
>
> </div>
>
> The <span class="title-ref">color</span> picker can also be displayed via the `DesktopColorPicker</api/user_interface/desktop/desktopcolorpicker>` class.
>
> You control the default choice of <span class="title-ref">Color</span> displayed by the <span class="title-ref">Color</span> Picker by passing a value of col to **SelectColor**. If col is not assigned a value, black is used as the default <span class="title-ref">Color</span>. The <span class="title-ref">Color</span> that the user chooses is returned in col. If the user clicks Cancel without making a choice, result is set to `False</api/language/false>`; otherwise it is set to `True</api/language/true>`.
>
> The following example allows the user to select a <span class="title-ref">Color</span> that will be used as the fillcolor in a `Rectangle</api/user_interface/desktop/desktoprectangle>` control.
>
> ``` xojo
> Var c  As Color
> Var b As Boolean
> c = Color.CMY(0.35, 0.9, 0.6, 0) ' choose the default color shown in color picker
> b = Color.SelectedFromDialog(c, "Select a Color")
> Rectangle1.FillColor = c
> ```
>
> If you don't want to test the boolean returned by SelectedFromDialog, you can call it using `Call</api/language/call>`.
>
> ``` xojo
> Call Color.SelectedFromDialog(c, "Select a Color")
> ```

<div id="color.selectedtextcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.SelectedTextColor

**SelectedTextColor** As Color

> Returns the system-defined <span class="title-ref">color</span> used for selected (highlighted) text.
>
> This value can be changed by the user or when the system switches between light/dark modes, so you should use this method in the Paint event handler rather than storing the value.
>
> This method is `shared</api/language/shared>`.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is currently only supported for Desktop projects.
>
> </div>

<div id="color.textcolor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.TextColor

**TextColor** As Color

> The system text <span class="title-ref">Color</span>.
>
> This method is `shared</api/language/shared>`.
>
> This value is useful when you are using `Canvas</api/user_interface/desktop/desktopcanvas>` controls to create custom controls. When drawing objects, use this <span class="title-ref">Color</span> as the DrawingColor value when drawing text.
>
> The `DisabledTextColor<color.disabledtextcolor>` returns the system <span class="title-ref">Color</span> for drawing disabled text.
>
> This value can be changed by the user or when the system switches between light/dark modes, so you should use this method in the Paint event handler rather than storing the value.
>
> <div class="important">
>
> <div class="title">
>
> Important
>
> </div>
>
> This method is only supported for Android and Desktop projects.
>
> </div>

<div id="color.tostring">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

Color.ToString

**ToString** As `String</api/data_types/string>`

> Converts the <span class="title-ref">Color</span> to a hex String value.

## Notes

The default value of a <span class="title-ref">Color</span> is `&c000000</api/language/literals/c>` (black).

Colors are often used to assign colors to properties of type <span class="title-ref">Color</span>. Use the `RGB<color.rgb>`, `HSV<color.hsv>`, or `CMY<color.cmy>` functions to assign a <span class="title-ref">Color</span> to an object or use the format:

``` xojo
&cRRGGBB
```

In the above, RR is the RGB value of Red in hexadecimal, GG is the value Green in hexadecimal, and BB is the value of Blue in hexadecimal. You can right-click in the Code Editor and select Insert <span class="title-ref">Color</span> to choose a <span class="title-ref">Color</span> using the <span class="title-ref">Color</span> picker, which will insert the hexadecimal value at the cursor position in the editor.

Desktop, Web and Console projects can also use the `CMY<color.cmy>` function to set the <span class="title-ref">Color</span> using cyan, magenta and yellow elements. The CMY function is not available for iOS projects.

You can use the `VarType</api/language/vartype>` function to determine whether a property or a variable is a <span class="title-ref">Color</span>. If it is, `VarType</api/language/vartype>` returns 16.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

### Converting to/from hex Strings

Use the ToString function to get the hexadecimal `RGB<color.rgb>` value of a \`Color\`:

``` xojo
Var c1 As Color
c1 = Color.RGB(255, 100, 50)
Var hexColor As String = c1.ToString ' hexColor = &h00FF6432
```

Note that a hex <span class="title-ref">Color</span> has the alpha value at the front instead of the end like an `&c</api/language/literals/c>` <span class="title-ref">Color</span> does.

To convert a hexadecimal <span class="title-ref">Color</span> value back to a <span class="title-ref">Color</span>, use the FromString shared method like this:

``` xojo
' hexColor is the String from above that contains a hex color value
Var c2 As Color = Color.FromString(hexColor)
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

### Alpha channel support

The <span class="title-ref">Color</span> type has a read-only "Alpha" property. The alpha channel is the transparency of the <span class="title-ref">Color</span> represented as an integer between 0 (opaque) and 255 (transparent).

The <span class="title-ref">Color</span> literal syntax can optionally have two more hexadecimal digits at the end representing the alpha channel (for example, "&cFF00007F"). If the <span class="title-ref">Color</span> literal has only 3 channels of information, the alpha component defaults to 0.

``` xojo
&cRRGGBBAA
```

The `RGB<color.rgb>`, `HSV<color.hsv>`, and `CMY<color.cmy>` functions also have an optional integer parameter that specifies the alpha channel for the <span class="title-ref">Color</span>.

### <span class="title-ref">Color</span> matching

If you are trying to draw colors that match colors from an image generated outside of Xojo (a screenshot for example), you need to take care in order to get the correct values. Whatever tool you use to detect the RGB <span class="title-ref">color</span> used for a particular pixel/point in an image must have its <span class="title-ref">color</span> profile set to the one that Xojo uses for that OS or the values it gives you when used with the `RGB<color.rgb>` function won't produce the same color.

| OS      | Color Profile        |
|---------|----------------------|
| Linux   | It varies by distro. |
| macOS   | Generic RGB          |
| Windows | sRGB                 |

## Sample code

The following example uses the `RGB<color.rgb>` model to set the `DrawingColor<graphics.drawingcolor>` property of a `Canvas</api/user_interface/desktop/desktopcanvas>` control and draw a square using the current `DrawingColor<graphics.drawingcolor>`. The code is placed in the `Canvas</api/user_interface/desktop/desktopcanvas>` control's Paint event.

``` xojo
g.DrawingColor = Color.RGB(255, 0, 0)
g.DrawRectangle(0, 0, 50, 50)
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The following example (in a Canvas Paint event) assigns a <span class="title-ref">Color</span> directly using the `RGB<color.rgb>` <span class="title-ref">Color</span> model. The `RGB<color.rgb>` values must be specified in hexadecimal:

``` xojo
g.DrawingColor = &cFF0000
g.DrawRectangle(0, 0, 50, 50)
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The following example uses the `CMY<color.cmy>` model to set the FillColor of a `Rectangle</api/user_interface/desktop/desktoprectangle>` control, r.

``` xojo
r.FillColor = Color.CMY(0.1, 0.3, 0.5)
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The following example inverts the FillColor:

``` xojo
Var currentColor As Color = r.FillColor
Var c As Color

c = Color.RGB(255 - currentColor.Red, 255 - currentColor.Green, 255 - currentColor.Blue)
r.FillColor = c
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Str</api/text/str>`, `String</api/data_types/string>`, `VarType</api/language/vartype>` functions; `&c</api/language/literals/c>` literal; `ColorGroup</api/graphics/colorgroup>` class

</div>
