Manual pages › Games and demos (6)
openwdemos(6)
OpenWindows Demonstrations
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
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.
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
Round Clock
Mona Eyes
Icosahedron
IcoScreenSaver
PolyScreenSaver
Flying Logos
Tetris
Wink
Colors
Color Names
Colormap
Color Wheel
Fader
Journaling
Calculator
The menu items are described below.
The NeWS Toolkit: POSTSCRIPT Previewer
Color
The following color demos:
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
The following black and white demos:
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 Porsche 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
The following Multipage demos:
Encapsulated PostScript
The EPSF document from Adobe.
Overview
The NeWS Overview document done in Frame.
The NeWS Toolkit: NeWS Rendering
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
Displays a geographic projection of the western hemi- sphere.
SpaceShip
A demonstration of NeWS' vector-drawing capabilities. The demo draws four spaceships inside its window, com- posed of over 7,000 vectors.
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
Draws a simple spiral pattern.
Pie Chart
Draws a business pie chart with slices of the pie filled with varying colors.
Wide Lines
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 language graphics context which affect wide line drawing.
X Logo
Draws an X logo based on that by Danny Chong.
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.
The NeWS Toolkit: Imaging
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
Demonstrates NeWS' ability to scale text to an arbi- trary size using the fill smart outline fonts of the imbedded OpenFonts technology of X11/NeWS.
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 its 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 orienta- tion. Press the left mouse button and drag out any square and the image will repaint inside it. The Tri- angle, Doughnut and SunLogo Stencils all demonstrate NeWS' POSTSCRIPT language 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 language transfer function.
Magnifier
The magnifier expands the bits under the cursor loca- tion. 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.
The NeWS Toolkit: Animation
Round Clock
A clock written entirely in the POSTSCRIPT language.
It uses unorthodox methods of getting the time of day
from the system, and overrides almost every possible
method in the frame and canvas classes in the NeWS
toolkit.
Mona Eyes
Represents half of an all-nighter and the lighter side of NeWS programming. The code is mostly stolen from NeWS 1.1's Eyecosahedron, the ideas are stolen from Monty Python's Flying Circus.
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 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
Another screen saver, which is modeled after the Mesa program "Poly".
Flying Logos
An observation of the one-to-one-ness of NeWS and the Sun Logo.
Tetris
A straightforward port of the popular Game.
Wink Displays a pair of eyes in the middle of the screen,
one of which winks at you.
The NeWS Toolkit: Colors
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
Displays the installed colormap. It also installs its own Hue ramp on Enter and uninstalls it on Exit.
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
Uses colormap animation to fade between two different 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.
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 Programmer's Guide PostScript Language Reference Manual , Adobe Systems Inc., Addison-Wesley
TRADEMARK
POSTSCRIPT is a registered trademark of Adobe Systems Inc.