Difference between revisions of "TextDisplay.color"

From MiniScript Wiki
Jump to navigation Jump to search
m (Add inline link to Color)
(+ about assigning invalid color)
 
Line 2: Line 2:
 
text display.  This is the text color for normal text, or the surrounding
 
text display.  This is the text color for normal text, or the surrounding
 
color for inverse-mode text.
 
color for inverse-mode text.
 +
 +
=== Usage Notes ===
 +
Assigning an invalid color value to this property will result in <c>"#00000000"</c> (transparent color).
  
 
== Example ==
 
== Example ==

Latest revision as of 20:11, 25 February 2024

TextDisplay.color gets or sets the foreground color used on any future printing to this text display. This is the text color for normal text, or the surrounding color for inverse-mode text.

Usage Notes

Assigning an invalid color value to this property will result in "#00000000" (transparent color).

Example

text.color = color.aqua