Difference between revisions of "TextDisplay.color"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>TextDisplay.color</c> 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...")
 
(+ about assigning invalid color)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<c>TextDisplay.color</c> gets or sets the foreground color used on any future printing to this
+
<c>[[TextDisplay]].color</c> gets or sets the foreground [[Color|color]] used on any future printing to this
 
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