NAME: generate grid AUTHOR INFO: Larry Gelberg, Stardent Computer, 508-287-0100 SOURCE FILE: gen_grid.c TYPE: data INPUTS: OPTIONAL: field 2d uniform 4-vector byte OUTPUTS: field 2d uniform 4-vector byte PARAMETERS: Name Type Default Min Max Choices Foreground Hue float 0.67 0.0 1.0 Foreground Sat float 0.00 0.0 1.0 Foreground Value float 1.00 0.0 1.0 Background Hue float 0.67 0.0 1.0 Background Sat float 0.00 0.0 1.0 Background Value float 1.00 0.0 1.0 Grid Width int 1 0 10 Grid Spacing int 10 0 100 X Resolution int 128 1 1024 Y Resolution int 128 1 1024 DESCRIPTION: GENERATE GRID creates a colored image of a grid of one color superimposed over a background color. You can control the colors of the grid with the FOREGROUND HUE, SAT(uration), and VALUE dials, the color of the background with the BACKGROUND HUE, SAT(uration), and VALUE dials, the thickness of the grid lines with the GRID WIDTH dial, the size of the squares between the grid lines with the GRID SPACING dial, and the resolution of the output image with the RESOLUTION typeins. If an image is plugged into the optional input port, then GENERATE GRID will produce an image of identical size. This is useful for compositing operations. EXAMPLE NETWORK 1: To make a picture of a grid: GENERATE GRID | DISPLAY IMAGE EXAMPLE NETWORK 2: To composite an image over the grid: READ IMAGE _____________________| | | GENERATE GRID | |________ _______| | | COMPOSITE | DISPLAY IMAGE SEE ALSO: BACKGROUND, COMPOSITE modules