Olaf Corten's OCUS help page for ps_change_background

Help and/or history for ps_change_background

See also entry in DESCRIPTION file

Usage: ps_change_background [options] file1 [file2]
 
	ps_change_background changes the background value of
	a Postscript file of a Shaded Pro/ENGINEER image.
 
	options:	-h	  =>	this help screen 
			-c XXXXXX =>	HEX colorcode
					R G B  values
					FFFFFF = white
					808080 = 50% gray
					0000AA = 66% blue (default)
			-p	  =>	set Pre-Release 16 version
	
	if only one file is given the old file will be overwritten.

	NOTE:	There is no check on the validity of your colorcode.

	BACKGROUND:
		There is a colormap table in the postscript output file.
		In the file there is a section like this:

		DisplayImage
		90.000000
		28.080000 -555.840000
		735.840000 555.840000
		3066 2316
		50
		FFFF00
		FF0000
		FFFFFF  <---------------- pre-R16 --------------------------+
		FFFFFF  <-------------------------------------------------+ |
		etc.                                                      | |
		                                                          | |
		Each of the colormap entries represents a series of       | |
		3 numbers from 0-255 in a hexadecimal representation.     | |
		The first 2 digits are red, second 2 are green and the    | |
		last 2 are blue. The fourth entry controls the background | |
		color. That entry is changed by this script. -------------+ |
		Pre-Release 16 the third entry controls the background. ----+

Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl

################################################################################
# History
#
# 09-07-96 Updated to Release 16.
# 11-03-96 first version
#
################################################################################