Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax

...

Panel
titleDescription

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_friendly

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, for example: "#00FF00".

Panel
titleSyntax

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

  • Parameter

int Integer red - The intensity of Redred, between 0 - 255.

int Integer green - The intensity of Greengreen, between 0 - 255.

int Integer blue - The intensity of Blueblue, between 0 - 255.

int Integer alpha - Optional. The amount of transparency, between 0 - 255. [optional]

  • Results

Color - Returns a color with the given RGB value.

Panel
titleExamples

There are no expression function examples associated with this expression function.