displaying_20inverse_20video
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| displaying_20inverse_20video [2018/03/31 13:19] – external edit 127.0.0.1 | displaying_20inverse_20video [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| | | ||
| ==== Inverse Video Text ==== | ==== Inverse Video Text ==== | ||
| - | //by Jon Ripley, May 2006//\\ \\ To read the current foreground and background text colours use the following code:\\ \\ | + | //by Jon Ripley, May 2006//\\ \\ To read the current foreground and background text colours use the following code: |
| + | |||
| + | <code bb4w> | ||
| fgcol% = @vdu%?70 | fgcol% = @vdu%?70 | ||
| bgcol% = @vdu%?71 | bgcol% = @vdu%?71 | ||
| - | Here **fgcol%** and **bgcol%** are normalised values in the range 0 to 15 representing the logical colour used.\\ \\ To invert the colours of the text display use the following code:\\ \\ | + | </ |
| + | |||
| + | Here **fgcol%** and **bgcol%** are normalised values in the range 0 to 15 representing the logical colour used.\\ \\ To invert the colours of the text display use the following code: | ||
| + | |||
| + | <code bb4w> | ||
| COLOUR bgcol% | COLOUR bgcol% | ||
| COLOUR 128+fgcol% | COLOUR 128+fgcol% | ||
| - | Now any text you **PRINT** will be in inverse video.\\ \\ To restore the original foreground and background text colours use the following code:\\ \\ | + | </ |
| + | |||
| + | Now any text you **PRINT** will be in inverse video.\\ \\ To restore the original foreground and background text colours use the following code: | ||
| + | |||
| + | <code bb4w> | ||
| COLOUR fgcol% | COLOUR fgcol% | ||
| COLOUR 128+bgcol% | COLOUR 128+bgcol% | ||
| - | \\ | + | </ |
| ==== Inverting the whole window ==== | ==== Inverting the whole window ==== | ||
| - | //by Richard Russell, May 2006//\\ \\ You can invert all the existing colours in the output window (or in the graphics viewport, if one is defined) as follows:\\ \\ | + | //by Richard Russell, May 2006//\\ \\ You can invert all the existing colours in the output window (or in the graphics viewport, if one is defined) as follows: |
| + | |||
| + | <code bb4w> | ||
| GCOL 4,128 | GCOL 4,128 | ||
| CLG | CLG | ||
| + | </ | ||
| + | |||
| This will affect both text and graphics. Executing this code twice will restore the original colours. | This will affect both text and graphics. Executing this code twice will restore the original colours. | ||
displaying_20inverse_20video.1522502356.txt.gz · Last modified: 2024/01/05 00:18 (external edit)