OWDEMOS(6) — GAMES AND DEMOS
NAME
OpenWindows Demonstrations
SYNOPSIS
Demos menu item in the Programs submenu.
OVERVIEW
The Demos menu item on the root menu runs "hyperview", a hypertext browser runnning a stack called "DemoNavigator". This program allows you to browse around a hierarchy of X11 and NeWS demonstration programs. These programs are intended to demonstrate NeWS and X11 graphics and user interaction capabilities.
DESCRIPTION
The Demos are started by selecting the Demo item on the Programs pull-right menu on the root menu.
OpenWindows Demonstrations:
The NeWS Toolkit PostScript Previewer Color Peter Tiger Parrot Chip Black and White Golfer Rose Shuttle Nozzle Porsche Butterfly Hawaii Usamap Worldmap Multipage Encapsulated PostScript Overview NeWS Rendering Escher’s Fish World SpaceShip Lines Spiral Pie Chart Wide Lines X Logo Rubber-band Imaging Text/Fonts Scaled Text Images Magnifier Animation Technichron Round Clock Mona Eyes Icosahedron IcoScreenSaver PolyScreenSaver Flying Logos Tetris
Wink Colors Color Names Colormap Color Wheel Fader Journaling Calculator
X11 demos xterm XView PostScript Ico Solid Ico Psycho Maze Muncher Plaid Puzzle Worm Xsol
DESCRIPTION
The NeWS Toolkit PostScript Previewer Color Peter - Peter Gabriel drawn by David Lavallee using Painter. Tiger - Bengal Tiger from Adobe Illustrator. Parrot - Colorful parrot from Adobe Illustrator. Chip - Custom Asic from a cad package. Black and White Golfer - The famous golfer from Adobe Illustrator. Rose - A vector drawing of a rose with a poem. Shuttle - AutoCAD cutaway drawing of a space shuttle. Nozzle - AutoCAD machanical drawing of a fire hose nozzle. Porsche - Adobe Illustrator Posche 911T. Butterfly - A vector drawing of a butterfly. Hawaii - Map of Hawaii from SunDraw. Usamap - Map of USA from Brian Reids netmap. Worldmap - Map of the world from Brian Reids netmap. Multipage Encapsulated PostScript - The EPSF document from Adobe. Overview - The NeWS Overview document done in Frame. NeWS Rendering Escher’s Fish Escher’s fish draws the famous Square Limit created by M. C. Escher. The demo is a 260-line recursive NeWS program that draws a large number of vectors. You can use the menu to vary the complexity of this drawing. World World displays a geographic projection of the Western Hemisphere. SpaceShip SpaceShip is a demonstration of NeWS’ vector-drawing capabilities. The demo draws four spaceships inside its window, composed of over 7,000 vectors. Lines Lines creates a window with a line pattern inside of it. You can can alter the number of lines drawn from the pop-up menu inside the window. On color screens, the line pattern is displayed in a rainbow of colors. Spiral Spiral draws a simple spiral pattern. Pie Chart Pie Chart draws a business pie chart with slices of the pie filled with varying colors. Wide Lines Wide Lines is a simple sketchpad that demonstrates NeWS’ wide line drawing capabilities. Click left to move the current point and middle to draw a line, curve or arc to any point. The menu allows you to to change all of the possible options in the PostScript graphics context which affect wide line drawing. X Logo n Logo draws an X logo based on that by Danny Chong. Rubber-band Rubber-band demonstrates how responsive NeWS can be when interacting with you. Click and drag the Point button to drag out a vector, rectangle or cubic spline curve. After a point is placed, you may adjust it by selecting it with the middle button. Imaging Text/Fonts Text/Fonts writes text inside a window in several styles. The right button brings up a pop-up menu from which you can select the font under the Font pull-right, the point size, the colors, and the text to be shown. The text shown can be either some sample text or a list of all characters in the chosen font. Scaled Text Scaled Text demonstrates NeWS’ ability to scale text to an arbitrary size using the fill smart outline fonts of the imbedded Open Fonts (tm) technology of X11/NeWS. Images Images combines all of the image demos from NeWS 1.1 into one demo. The Images submenu lets you choose which image to manipulate while the Modes submenu lets you choose the mode you wish to view the image in. Scaled Image fits the image into the frame, whatever size you make it. Pan Image renders the image in it’s native size and lets you pan it around by pressing and dragging the left mouse button. If you "lose" the image, pressing the middle button will bring it back. Bounce Image will "automatically" pan the image around, bouncing off of the window borders. Tiled Image will render the image as many times as it takes to fill the window frame. Rotated image will render the image at several rotations around the clock. Spin image will render the image in a user defined square at an arbitraty orientation. Press the left mouse button and drag out any square and the image will repaint inside it. The Triangle, Doughnut and SunLogo Stencils all demonstrate NeWS’ PostScript imaging model where all operations including imaging can be clipped to an arbirary "stencil". The brightness and contrast menus can be used to adjust these viewing parameters using the PostScript transfer function. Magnifier The magnifier expands the bits under the cursor location. The zoom level can be controlled by the menu. You can stop the snapshots of the cursor by pressing the middle button. If you press left button in the magnifier window when it is stopped it will restart. Animation Technichron Technichron displays the time of day by showing how the light is falling on the earth at the current time. There are several methods of "Time Warp" available from the menu. These were originally for debugging, but are of some educational value, so they remain. Round Clock Round Clock is a clock written entirely in PostScript. It uses unorthodox methods of getting the time of day from the system, and overrides just about every possible method in the frame and canvas classes in the NeWS toolkit. Other than that it is pretty much just your average NeWSwatch. Mona Eyes Mona Eyes represents half of an all-nighter and the lighter side of NeWS programming. It is mostly code stolen from NeWS 1.1’s Eyecosahedron and ideas from Monty Python’s Flying Circus. Icosahedron Icosahedron displays a bouncing 20 sided regular solid with the hidden lines removed. The menu switches between rendering directly to the framebuffer and buffering the rendering through an image. On machines with fast graphics hardware sun as the 4/60GX the former will be faster. IcoScreenSaver This is the same demo as above, but it is covers the whole screen and goes away with a click of the mouse button. PolyScreenSaver Yet another screen saver, this one modeled after the Mesa program "Poly" by a former Xeroid. Flying Logos A wonderful observation of the one-to-one-ness of NeWS and the Sun Logo. Tetris A straightforward port of the popular Game. Wink Wink displays a pair of eyes in the middle of the screen, one of which winks at you. Colors Color Names Color Names shows you the correspondence between color names in the color dictionary as implemented by NeWS/colors.ps and their colors on the screen. This program uses scrollbars to access all the colors. Colormap Colormap displays the installed colormap. It also installs its own Hue ramp on Enter and uninstalls it on Exit. Color Wheel Color Wheel draws a wheel of colors inside a window. You can use the menu to switch between gray and color, and to vary the number of shades, the saturation, and the intensity of the colors displayed. Fader Fader uses colormap animation to fades between two differnt strings with an interesting visual effect. The menu is used to change the fading rate and to pick a different set of strings to fade. Journaling A demonstration of the Record and Play features of the NeWS event distribution system. Calculator The simple four function calculator in Reverse Polish Notation style.
X11 demos xterm - the standard X11 terminal emulator. XView PostScript - X11 access to PostScript revealed. Ico - The original Icosahedron. Solid Ico - The same as Ico, but used colormap double buffering. Psycho - Another Ico hack the use multiple windows. Maze Maze is a non-interactive maze generator and solver. The program will generate and draw a maze in the window. It will then solve the maze using a backtracking algorithm, showing all of its attempts along the way. Muncher - another CPU waster to test raw graphics performance. Plaid - ditto. Puzzle - a simulation of the old 15 tiles in a 4x4 grid game. Worm - slithering worms and a rotating colormap. Xsol - Solitare simulator.
FILES
$XNEWSHOME/etc/NeWS/hyperdecks/xnewsdemo.hv
the hyperview(1) deck which has the hypertext data for the DemoNavigator.
$XNEWSHOME/demo/∗ All of the demo programs run by the DemoNavigator.
SEE ALSO
psh(1), pageview(1), hyperview(1)
NeWS Manual
PostScript Language Reference Manual , Adobe Systems Inc., Addison-Wesley
TRADEMARK
s is a registered trademark of Adobe Systems Inc.
Sun Release 4.0 — Last change: 12 July 1989