API Console.SetOutputRGB: Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 2: | Line 2: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetOutputRGB''' | ||
|- | |- | ||
| colspan="2" | Sets the colour of text inserted by the component from now on | | colspan="2" | Sets the colour of text inserted by the component from now on | ||
Latest revision as of 14:11, 13 July 2026
Detailed description
This call sets the colour that text is displayed when inserted via any console API call:
The colour specified is true 24-bit R,G,B, however, internally console text is stored as 6 bits per pixel - that is 4 grades of red, green and blue.
This call compliments API Console.SetInputRGB which sets the colour for text typed by the user.
Examples
Calling in a calculation
- Add to a calculation icon:
::Console.SetOutputRGB(consolehandle, rgb)