API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IGRAPHICS_SETBACKGROUND()

Brew Release
Brew MP 1.0.2
See Also
IGraphics IGRAPHICS_ClearRect() RGBVAL
Description
This function sets the RGB values of the current background color. This color will remain in effect until it is set to different values.
Params
pIGraphics
[]:
Pointer to the IGraphics interface object.
r
[]:
Red component of the RGB value.
g
[]:
Green component of the RGB value.
b
[]:
Blue component of the RGB value.
Interface
  • IGRAPHICS
Prototype
  • RGBVAL IGRAPHICS_SetBackground(IGraphics *pIGraphics, uint8 r, uint8 g, uint8 b);
    
Return
  • The updated RGB value for the current background color.
Side Effect
  • None
Comments
The program shall not show the new background color until IGRAPHICS_ClearRect is called. The value of each color component (red, green and blue) should be a positive value between 0 and 255. Any integer values beyond this range will be converted to a value within the range from 0 to 255. However, the conversion itself is machine-dependent. The user is encouraged to use values within the range to have predictable color effect.