User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL USER MANUAL VERSIONS

Ignition 8.1
Ignition 7.9
Ignition 7.8

Deprecated Pages

Employees

Sign In

Skip to end of metadata
Go to start of metadata

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.

Note: This function was designed to return color objects to Vision bindings, and will not work with Perspective bindings. Instead, Perspective color properties can simply use string hex codes to derive a color from a binding. Example: "#00FF00".

Syntax

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

  • Parameter

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.

  • No labels