Skip to main content
Version: 7.9

color

This function is used by Ignition's Expression language.

Description

Creates a color using the given red, green, and blue amounts, which are integers between 0-255. The optional alpha channel to the color controls transparency.

Syntax

color(red, green, blue[, alpha])

  • Parameters

    • int red - The intensity of Red, between 0 - 255.

    • int green - The intensity of Green, between 0 - 255.

    • int blue - The intensity of Blue, between 0 - 255.

    • int alpha - Optional. The amount of transparency, between 0 - 255.

  • Results

    • Color - Returns a color with the given RGB value.

Examples

There are no expression function examples associated with this expression function