'\"macro stdmacro
.if n .pH g6.openwdemos @(#)openwdemos	40.2 of 12/29/89
.ig
Revised: D. Bodnar 9/7/89
format -dqm4 -man6 -rs1 openwindemos.1
..
.ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
.ds Sd \s-2Ne\h'-0.2n'WS\s+2
.ds Xn X11/Ne\h'-0.2n'WS
.ds Pm \*(Sd Programmer's Guide
.\" @(#)openwindemos.6 1.2 89/07/23 Copyright 1989 Sun Micro
.nr X
.if \nX=0 .ds x} OPENWINDEMOS 6 "23 July 1989" "\&"
.if \nX=1 .ds x} OPENWINDEMOS 6 "23 July 1989"
.if \nX=2 .ds x} OPENWINDEMOS 6 "" "\&"
.if \nX=3 .ds x} OPENWINDEMOS "" "" "\&"
.TH \*(x}
.IX openwindemos#(6) "" "\fLopenwindemos\fP(6)"
.SH NAME
OpenWindows Demonstrations
.SH SYNOPSIS
\fBDemos\fR menu item in the \fBPrograms\fR submenu.
.SH OVERVIEW
The \fBDemos\fR menu item on the root menu runs \fBhyperview\f1, a hypertext
browser runnning a stack called \f3DemoNavigator\f1.  This program allows you to
browse around a hierarchy of
\s-2X11\s+2 and \*(Sd demonstration programs.  These
programs are intended to demonstrate \*(Sd and \s-2X11\s+2 graphics and user
interaction capabilities.
.SH "DESCRIPTION"
The \fBDemos\fP are started by selecting the Demo item on the Programs
pull-right menu on the root menu.
.sp
.nf
.ft B
    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
.fi
.\".ad
.LP
\fRThe menu items are described below.
.LP
.na
.SH The \*(Sd Toolkit: \*(Ps Previewer
.TP
.B Color
The following color demos: 
.\"
.RS
.TP
.B Peter
Peter Gabriel drawn by David Lavallee using Painter.
.TP
.B Tiger
Bengal Tiger from Adobe Illustrator.
.TP
.B Parrot
Colorful parrot from Adobe Illustrator.
.TP
.B Chip
Custom Asic from a cad package.
.RE
.\"
.TP
.B "Black and White"
The following black and white demos:
.RS
.TP
.B Golfer 
The famous golfer from Adobe Illustrator.
.TP
.B Rose 
A vector drawing of a rose with a poem.
.TP
.B Shuttle 
AutoCAD cutaway drawing of a space shuttle.
.TP
.B Nozzle 
AutoCAD machanical drawing of a fire hose nozzle.
.TP
.B Porsche 
Adobe Illustrator Porsche 911T.
.TP
.B Butterfly 
A vector drawing of a butterfly.
.TP
.B Hawaii
Map of Hawaii from SunDraw.
.TP
.B Usamap 
Map of USA from Brian Reids netmap.
.TP
.B Worldmap 
Map of the world from Brian Reids netmap.
.RE
.\"
.TP
.B Multipage
The following Multipage demos:
.RS
.TP
.B "Encapsulated PostScript"
The 
.SM EPSF 
document from Adobe.
.TP
.B Overview 
The \*(Sd Overview document done in Frame.
.RE
.\"
.SH The \*(Sd Toolkit: \*(Sd Rendering
.TP
.B "Escher's Fish"
Draws the famous \fISquare Limit\fP created by M.
C. Escher.  The demo is a 260-line recursive \*(Sd program that
draws a large number of vectors.  You can use the menu to vary
the complexity of this drawing.
.TP
.B World
Displays a geographic projection of the western hemisphere.
.TP
.B SpaceShip
A demonstration of \*(Sd' vector-drawing capabilities.  The
demo draws four spaceships inside its window, composed of over 7,000 vectors.
.TP
.B 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.
.TP
.B Spiral
Draws a simple spiral pattern.
.TP
.B "Pie Chart"
Draws a business pie chart with slices of the pie
filled with varying colors.
.TP
.B "Wide Lines"
A simple sketchpad that demonstrates \*(Sd' 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 \*(Ps language graphics context which
affect wide line drawing.
.TP
.B "X Logo"
Draws an X logo based on that by Danny Chong.
.TP
.B Rubber-band
Demonstrates how responsive \*(Sd 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.
.\"
.SH The \*(Sd Toolkit: Imaging
.TP
.B 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
\fIFont\fP 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.
.TP
.B Scaled Text
Demonstrates \*(Sd' ability to scale text to an arbitrary
size using the fill smart outline fonts of the imbedded OpenFonts 
technology of \s-2X11/\s+2\*(Sd.
.TP
.B Images
Combines all of the image demos from \*(Sd 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 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 \*(Sd' \*(Ps 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 \*(Ps language transfer
function.
.TP
.B 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.
.\" 
.SH The \*(Sd Toolkit:  Animation
.TP
.B Round Clock
A clock written entirely in the \*(Ps 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 \*(Sd
toolkit.  
.TP
.B Mona Eyes
Represents half of an all-nighter and the
lighter side of \*(Sd programming.
The code is mostly stolen from \*(Sd 1.1's Eyecosahedron, the
ideas are stolen from Monty Python's Flying Circus.
.TP
.B Icosahedron
.fi
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.
.TP
.B 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.
.TP
.B PolyScreenSaver
Another screen saver, which is modeled after the Mesa program "Poly".
.TP
.B Flying Logos
An observation of the one-to-one-ness of \*(Sd and the Sun Logo.
.TP
.B Tetris
A straightforward port of the popular Game.
.TP
.B Wink
Displays a pair of eyes in the middle of the screen,
one of which winks at you.
.\"
.SH The \*(Sd Toolkit: Colors
.TP
.B "Color Names"
Shows you the correspondence between color
names in the color dictionary as implemented by \fBNeWS/colors.ps\fP
and their colors on the screen.
This program uses scrollbars to access all the colors.
.TP
.B Colormap
Displays the installed colormap.  It also installs its 
own Hue ramp on Enter and uninstalls it on Exit.
.TP
.B "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.
.TP
.B 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.
.TP
.B Journaling
A demonstration of the Record and Play features of the \*(Sd event
distribution system.
.TP
.B Calculator
The simple four-function calculator in Reverse Polish Notation style.
.\"
.SH FILES
.TP 25
.B $XNEWSHOME/etc/NeWS/hyperdecks/xnewsdemo.hv
the \fBhyperview\fP(1) deck which has the hypertext data for the \fBDemoNavigator\fP.
.TP 25n
.B $XNEWSHOME/demo/*
All of the demo programs run by the \fBDemoNavigator\fP.
.SH "SEE ALSO"
\fBpsh\fP(1), \fBpageview\fP(1), \fBhyperview\fP(1)
.LP
.I "\*(Sd Programmer's Guide"
.LP
.I "PostScript Language Reference Manual" ,
Adobe Systems Inc., Addison-Wesley
.SH TRADEMARK
\*(Ps is a registered trademark of Adobe Systems Inc.
