TDCLRS(3NCARG) | NCAR GRAPHICS | TDCLRS(3NCARG) |
TDCLRS - Does GKS calls to define colors for TDPACK.
CALL TDCLRS (IWID, IBOW, SHDE, SHDR, IOFC, IOLC, ILMT)
#include <ncarg/ncargC.h>
void c_tdclrs(int iwid, int ibow, float shde, float shdr, int iofc, int iolc, int ilmt)
This routine is called to do the GKS calls defining the following colors on a specified workstation (NSHD is equal to IOLC-IOFC+1, the number of elements in each block of color shades):
Color 0 = background color (depends on IBOW)
Color 1 = foreground color (depends on IBOW)
Color 2 = red (RGB values 1,0,0)
Color 3 = green (RGB values 0,1,0)
Color 4 = blue (RGB values 0,0,1)
Color 5 = cyan (RGB values 0,1,1)
Color 6 = magenta (RGB values 1,0,1)
Color 7 = yellow (RGB values 1,1,0)
Colors IOFC - IOLC = grays, white to black
Colors IOFC+NSHD - IOLC+NSHD = grays
Colors IOFC+2*NSHD - IOLC+2*NSHD = reds
Colors IOFC+3*NSHD - IOLC+3*NSHD = greens
Colors IOFC+4*NSHD - IOLC+4*NSHD = blues
Colors IOFC+5*NSHD - IOLC+5*NSHD = cyans
Colors IOFC+6*NSHD - IOLC+6*NSHD = magentas
Colors IOFC+7*NSHD - IOLC+7*NSHD = yellows
The colors defined by calling TDCLRS may be used for any purpose, but they are particularly useful when calling TDPACK routines to render surfaces.
The arguments of TDCLRS are as follows:
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
To use TDCLRS or c_tdclrs, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
Online: tdctri, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
July 1997 | UNIX |