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

Developer

API Reference

IGRAPHICS_SETCOLOR()

Brew Release
Brew MP 1.0.2
See Also
IGraphics IGRAPHICS_GetColor() RGBVAL
Description
This function sets the current foreground color's RGBA value. All subsequent graphics objects will be drawn in this color until this function is called again for different RGBA values.
Params
pIGraphics
[]:
Pointer to the IGraphics interface object.
r
[]:
Red component of the RGBA value.
g
[]:
Green component of the RGBA value.
b
[]:
Blue component of the RGBA value.
alpha
[]:
Alpha value.
Interface
  • IGRAPHICS
Prototype
  • RGBVAL IGRAPHICS_SetColor(IGraphics *pIGraphics, uint8 r, uint8 g, uint8 b, uint8 alpha);
    
Return
  • The updated RGBA value for foreground.
Side Effect
  • None
Comments
In the current version, "alpha" is just a placeholder that has no effect on the foreground color. Eventually this value will be used to support transparent color and color blending. The default foreground color is black.