Difference between revisions of "TextDisplay.setCellColor"

From MiniScript Wiki
Jump to navigation Jump to search
(removed obsolete usage note)
 
Line 13: Line 13:
 
| ''y'' || number or list|| 0 || row (or list of rows) to affect
 
| ''y'' || number or list|| 0 || row (or list of rows) to affect
 
|-
 
|-
| ''color'' || string || #FFFFFF || color to apply
+
| ''color'' || string || #FFFFFF || text color to apply
 
|}  
 
|}  
 
=== Usage Notes ===
 
This may appear as either the text color or the surrounding color, depending
 
on whether the given cell is in inverse mode.
 
  
 
== Example ==
 
== Example ==

Latest revision as of 02:47, 29 December 2020

TextDisplay.setCellColor changes the foreground color of the given cell.

See also: TextDisplay.cellColor

Arguments

Parameter Name Type Default Value Meaning
x number or list 0 column (or list of columns) to affect
y number or list 0 row (or list of rows) to affect
color string #FFFFFF text color to apply

Example

text.setCellColor 0, 10, color.red