/
Colors
Colors
How is the color value specified in the database table?
Answer: Each color has a designated RGB value. The integer value (long) may be calculated for the color parameter, then specified in the database table, through the following formula:
- Color parameter = R + G * 256 + B * 2562
where R, G, and B may be 0 - 255
For example, blue has a RGB value of (0, 0, 255), therefore its color parameter is 0 + 0 * 256 + 255 * 2562 = 16711680.
You may find the RGB value corresponding to the color parameter by utilizing the modulo operation as follows:
- R = (color parameter) modulo 256
- G = (color parameter / 256) modulo 256
- B = color parameter / 2562
where / is integer division operator.
Loading
Related content
Complicated joint patterns
Complicated joint patterns
More like this
Create and copy frame properties
Create and copy frame properties
More like this
Material stress-strain curves
Material stress-strain curves
More like this
CSI Analysis Reference Manual
CSI Analysis Reference Manual
More like this
Create and copy load combinations
Create and copy load combinations
More like this
Import frame properties from shape libraries
Import frame properties from shape libraries
More like this