Return to index

NAME

c - get or set the current color context

SYNOPSIS

c [ id [ = [ template ] ] ]

DESCRIPTION

If the c keyword is given by itself, then it establishes the unnamed color context, which is neutral (i.e. equal-energy) grey. This context may be modified, but the changes will not be saved.

If the keyword is followed by an identifier id, then it reestablishes a previous context. If the specified context was never defined, an error will result.

If the entity is given with an identifier followed by an equals sign ('='), then a new context is established, and cleared to the default neutral grey. (Note that the equals sign must be separated from other arguments by white space to be properly recognized.)\0 If the equals sign is followed by a second identifier template, then this previously defined color will be used as a source of default values rather than grey. This is most useful for establishing a color alias.

EXAMPLE

# Define the color "red32"
c red32 =
	cxy .42 .15
# Make "cabinet_color" an alias for "red32"
c cabinet_color = red32

# Later in another part of the description...

# Get our cabinet color
c cabinet_color
# Get the geometry
i cabgeom.mgf

SEE ALSO

cct, cmix, cspec, cxy, m