Migration Guide : A. Features Introduced in OpenROAD 4.1 : OpenROAD 4.1 New Features : RGB Color support
 
Share this page          
RGB Color support
OpenROAD supports a user-customizable color palette with a non-customizable system palette. This places an arbitrary limit on the amount of colors available for application use. Specifying a palette index currently sets color attributes. Allowing color attributes to be set with either a palette index or an RGB value reduces the color limit.
A new system-defined function is provided to return an integer representing an RGB color value.
RGB Function
The RGB function returns an integer number representing an RGB color value.
Syntax:
RGB(red,green,blue)
Arguments
Data Type
Description
red
integer
0-255, inclusive, that represents the red component of the color
green
integer
0-255, inclusive, that represents the green component of the color
blue
integer
0-255, inclusive, that represents the blue component of the color
This function returns an integer number representing an RGB color value.