[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.4.3 Graphics-Mode Display Text (#G)

This command is used to display text in a graphics mode. The text is displayed with the position, color, font, size, and justification attributes specified by the Graphics-Mode Text Attributes command (2.3.4.9 Graphics-Mode Text Attributes (%A)).

Name:
Graphics-Mode Display Text
Class:
Display Text
Code:
#G
Syntax:
#G[text]
System:
Display the text text. text can not contain a `]' character.

Requires:
Cogsys must be in a graphics mode.

History:
Cogsys 2.7 had a #G which incorporated the functionality of the Graphics-Mode Text Attributes command (%A. See the history note for Graphics-Mode Text Attributes for more details (see section Graphics-Mode Text Attributes).

Test Files:
`GRTX_T01.IN'
tests basic operation
`GRTX_B01.IN'
benchmarks the display of 1000 characters in a standard font, size, color.

Examples:

input
%M2#G[hello from graphics mode!]#W5000%M0
cogsys
Switches to Cogsys mode 2 (640x480x256 colors), displays the string, waits 5 seconds, and returns to text mode. The string is displayed in the default font, size, color and justification at the location 0,0 (top left of the screen).



This document was generated by Usman Muzaffar on June, 28 2000 using texi2html