BackGround TCL UTILITIES USER MANUAL BackGround
SYNOPSIS
Set the canvas background color
PACKAGE
TCLGPH
NAME
GraphicsOn
USAGE
BackGround  Color
INPUT DEFINITIONS
Color - The canvas bacground color. Value must be between 0 and 255.
RETURN DEFINITION
NONE
DESCRIPTION
BackGround sets the canvas bacground color. It only has effect when called prior to the invoking of the canvas, that is, prior to calling either GraphicsOn or SetScreen when a canvas is being initialized. It has no effect when called after the canvas has been initialized.
When called before GraphicsOn you cannot use any of the predefined colors in GphInfo as the color table has not been loaded. You can work around this by invoking the canvas as
GraphicsOn TK ETones SWAP NONE OMIT
BackGround $GphInfo(Blue)
SetScreen 0
      
 
      Which brings up the canvas after the color table has been loaded. Also
      note that SWAP in this case has no effect on the background.
   
ERRORS
None Generated
C BACKING
No
EXAMPLE(S)
EXAMPLE 1: Show line styles and examples of filled polygons.
# INITIALIZE the default gui settings

GUIprefsRead

# SET a window size

set GphInfo(xsScrL) 600
set GphInfo(ysScrL) 500
set GphInfo(xScrL) 600
set GphInfo(yScrL) 500

# SET a blue canvas bacground 

BackGround 50

# START graphics

GraphicsOn TK ETones SWAP
      
Feb 15, 2007