Color enumeration and ColorFade, ColorValue, and RGBA functions in PowerApps

10/25/2015

3 minutes to read

Contributors

In this article

Using built in color values, defining custom colors, and Alpha blending.

Description

The Color enumeration is an easy way to access the colors defined by HTML's Cascading Style Sheets (CSS). For example, Color.Red returns a pure red color. The list of these colors is included at the end of this article.

The ColorValue function returns a color based on a CSS color string. Both names of CSS colors such as "RosyBrown" and hex values such as "#bc8f8f" may be used.

The RGBA function returns a color based on Red, Green, and Blue color components. It also includes an Alpha component used for mixing colors of objects layered on top of one another. Alpha varies from 0 or 0% which is fully transparent and invisible to 1 or 100% which is fully opaque and completely blocks out layers below.

The ColorFade function returns a brighter or darker version of a color. The amount of fade varies from -1 or -100% (which fully darkens a color to black) to 0 (which has no impact on the color) to 1 or 100% (which fully brightens a color to white).

Alpha - Required. Alpha component, ranging from 0 (fully transparent) to 1 (fully opaque). You can also use a percentage, 0% to 100%.

ColorFade( Color, FadeAmount )

Color - Required. A color value such as Color.Red or the output from ColorValue or RGBA.

FadeAmount - Required. A number between -1 and 1. -1 fully darkens a color to black, 0 has no impact on the color, and 1 fully brightens a color to white. You can also use a percentage from -100% to 100%