# ColorRGBA
{: .no_toc }

A **Long**-compatible type alias used wherever a 32-bit ABGR colour value is expected. The high byte is the alpha channel --- `&HFF000000` is fully opaque, `&H00000000` is fully transparent --- and the low three bytes follow the standard `vbBlue`/`vbGreen`/`vbRed` order used by the [**ColorConstants**](/tB/Packages/VBRUN/Constants/ColorConstants.md) `Long`-coloured constants. Used by [**FillColorPoint.Color**](/tB/Packages/CustomControls/Styles/Fill.md#color) and by the **RGBA** parameter of [**FillColorPoints.SetSolidColorRGBA**](/tB/Packages/CustomControls/Styles/Fill.md#setsolidcolorrgba) / [**Borders.SetSimpleBorderRGBA**](/tB/Packages/CustomControls/Styles/Borders.md#setsimpleborderrgba).

> [!NOTE]
> **ColorRGBA** is declared as an empty `Enum` block (with a placeholder `[_MAX] = 0` member) only because twinBASIC has not yet exposed a type-alias syntax such as `Type ColorRGBA = Long`. The source has a `FIXME` comment noting the stand-in. **ColorRGBA** should be used as a **Long**-compatible type alias rather than as an enumeration with named members; when alias syntax becomes available, the enum stand-in will be replaced.

To write a fully-opaque colour, OR-in the opaque alpha mask: `&HFF000000 Or vbBlue`. The convenience setters [**FillColorPoints.SetSolidColor**](/tB/Packages/CustomControls/Styles/Fill.md#setsolidcolor) and [**Borders.SetSimpleBorder**](/tB/Packages/CustomControls/Styles/Borders.md#setsimpleborder) take a normal three-byte **Long** colour and apply the opaque mask automatically; only the `*RGBA` variants take a raw **ColorRGBA**.

```tb check_build
Dim translucentRed As ColorRGBA = &H800000FF&    ' 50% alpha, full red
```
