Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gp_demos(6)

gfxtool(1)

GRAPHICS_DEMOS(6)  —  GAMES AND DEMOS

NAME

graphics_demos, bouncedemo, cframedemo, framedemo, goban, jumpdemo, maze, shaded, show, showmap, spheresdemo, stringart, suncube − graphics demonstration programs

SYNOPSIS

bouncedemo [ −d dev ] [ −nx ] [ −r ] [ −q ]

cframedemo [ −d dev ] [ −nx ] [ −r ] [ −q ]

framedemo [ −d dev ] [ −nx ] [ −r ] [ −q ]

goban game

jumpdemo [ −c ] [ −d dev ] [ −nx ] [ −r ] [ −q ]

maze

shaded object [ −d dev ]

show rasterfile [ rasterfile ... ]

showmap [ −d dev ] [ −q ]

spheresdemo [ −d dev ] [ −nx ] [ −r ] [ −q ]

stringart [ −d dev ] [ −q ]

suncube [ −d dev ] [ −q ]

DESCRIPTION

Note:Optional Software (Games and Demos Option).  Refer to Installing UNIX on the Sun Workstation for information on how to install these demos. 

Bouncedemo

bouncedemo displays a bouncing square. 

Cframedemo

cframedemo displays a series of color frames, each of which contains a 256 by 256 image of eight-bit-deep pixels.  cframedemo looks for the frames in the files frame.1 through frame.n in the current working directory, and displays them in numerical order.  When run in the directory /usr/demo/globeframes, cframedemo displays a rotating view of the world. 

Framedemo

framedemo displays a series of frames, each of which contains a 256 by 256 image one-bit-deep pixels (that is, the image is a square monochrome bitmap, with 256 bits on a side).  framedemo looks for the frames in the files frame.1 through frame.n in the current working directory, and displays them in numerical order.  A set of sample frames is available in the directory /usr/demo/globeframes/∗.  Interactive Commands

If you move the cursor onto the image surface,  you can type certain commands to affect the rate at which the frames are displayed. The initial rate is one frame per second:

f removes 1/20th of a second from the interval. 

F removes one second from the interval.  Ff makes the interval as small as possible. 

s adds 1/20th of a second. 

S adds one second. 

Goban

goban is Japanese for "go board".  It is an automatic board, but does not play go.  If you invoke it with no game argument, goban reads from the file masterofgo.  This is a transcript of an important historical game written about by the Nobel Prize winning author, Yasunari Kawabata in The Master of Go, a book which conveys the ancient and facinating game. 

Stones are placed on the board by selecting a grid point with the cursor and pressing the left-button.  As stones are played, the color to play next alternates between black and white.  The center-button, when pressed in the board area, backs up a move (undo it).  The right-button moves forward in the game. 

Stepping backwards and forwards does not alter the game until the left-button is pressed to place a stone, at which time any moves beyond the current position are discarded. 

Jumpdemo

jumpdemo simulates the famous Star Wars jump to light-speed-sequence using vector drawing.  Colored stars are drawn on color surfaces. 

Maze

maze creates a random maze-pattern and tries a depth-first solution.  If used in lockscreen, remember to run in "nice" mode since this demo consumes lots of cpu cycles. 

Shaded

shaded displays shaded objects.  Objects are located in usr/demo/DATA and include an icosahedron, glass, soccer ball, space shuttle, egg and pyramid.  This demo can take up to 40 seconds to start up with som objects.  Mouse input is required:

Interactive Commands

Click the left- and middle-buttons on the left grid to set the x-y orientation.  Click the middle-button on the right grid to set the z orientation.  Click the left-button away from either grid to open the features menu, from which you can make selections using the left-button. 

After selecting the desired features, click the left-button away from all objects to exit the features menu. 

Click the right-button to begin drawing the object.  When the figure is finished, click the right-button to return to the grids and menu, or type q to exit. 

Show

show displays rasterfiles in a window or on a raw screen.  Sample files are contained in the directory /usr/demo/COLORPIX.  Running

show COLORPIX/∗

from /usr/demo will continuously cycle through the sample images. 

Spheresdemo

spheresdemo computes a random collection of shaded spheres.  Colored spheres are drawn on color surfaces. 

Showmap

showmap displays 10 map projections continuously until interrupted.  Each map is displayed for about 5 seconds.  The maps are in the directory /usr/demo/MAPS. 

Stringart

stringart continuously displays a different "work of art" every 5 seconds.  A total of 24336 different designs are possible.  On color surfaces the designs will loop through the colors: red, olive, green, turquoise, blue, and violet. 

Suncube

Displays a cube with the SUN logo mapped to each face.  Will run continuously until interrupted.  On color surfaces the colors of logo segments change gradually.  On monochrome surfaces the logo segments remain hollow. 

OPTIONS

−c Rotate the color map to produce a sparkling effect. 

−d surface
Run the demo on a surface other than the window or system console, for instance:

bouncedemo -d /dev/cgone0

−nx Draw x items, or repeat a sequence x times. 

−r Retain the window.  This allows the image to reappear when uncovered instead of restarting the demo. 

−q Quick exit.  Useful for running several demos from within a shell script. 

SEE ALSO

gp_demos(6), gfxtool(1)

Sun Release 3.2  —  Last change: 29 May 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026