Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 291 -
------------------------------------------------------------------------------
39. Map a color into a color palette. <Main>
------------------------------------------------------------------------------
[Name]
_remappalette
[Syntax]
#include <graph.h>
long _remappalette( short index, long color ) ;
[Description]
Changes color value of the specified color palette.
[Compatibility]
<MS-C Non-Compatible Specification>
(1) In MS-C, the actual behaviour of this function is not corresponding
to the explanation in the reference manual. In C Executor, this
function returns the color value according to the explanation of the
manual when palette #0 is changed by setting of background color.
(2) In MS-C, the return value for successfully execution is always
previos set color value regardless of the current video mode, but
this function always returns the color value just before execution of
this function in C Executor. That is, this function doesn't return
0 but the initial setting value for the 1st calling.
<MS-C Compatible Specification>
(1) The following graphic statuses are returned by the "_grstatus"
function after the execution of this function.
Executed successfully : _GROK
Invalid palette number : _GRINVALIDPARAMETER
[Remarks]
This function is available on both ACRTC and VGA Graphic.