The function returns the RGB value of given color z použitej farebnej palety v schéme alebo zo zadanej farebnej palety.
Declaration
INT %HI_GetPalRGB(
INT in page,
INT in row,
INT in column
[,HOBJ in colorPalette]
)
Parameters
page
Page of the color palette.
row
Row on the page of the color palette.
column
Column on the page of the color palette.
colorPalette
farebná paleta alebo systémová farebná paleta (hodnota 0)
Description
The function returns the value of required color, that is defined by the parameters page (1 up to 10 in the color palette), row (1 up to 8 on given page in the color palette) and column (1 up to 16, "A" up to "P" or "a" up to "p" on given page in the color palette).
Note
The column can be defined either by number 1 up to 16 or single letter text "A" up to "P", or "a" up to "p". These forms of record are equivalent, i.e. 1 is the same as "A" (or "a"). The function %MakeRGB allows to form the color from individual color components.
Príklad
INT _color
; získanie farby z použitej farebnej palety v schéme
_color := %HI_GetPalRGB(2,3,5)
; získanie farby z farebnej palety CP1
_color := %HI_GetPalRGB(2,3,5,CP1\HBJ)
; získanie farby zo systémovej palety
_color := %HI_GetPalRGB(2,3,5,0)