[comp.sys.next] Submitted Demo Program RandPoly

sutter@skat.usc.edu (Carl Sutter) (03/17/90)

I have submitted a program called RandPoly to cs.orst.edu and
 j.cc.purdue.edu.

RandPoly is a simple program provided as an example to new programmers on the
 NeXT machine.  It is not intended as an example of graphics speed, and makes
 little attempt at drawing as fast as possible.

The basic idea is to draw polygons continuously, while allowing any other
 events to be handled.  If Alpha is enabled, each polygon is drawn first into
 a bitmap, and then composited on the the screen using the SOVER compositing
  operation.  This allows for the transparency you see at alpha values less
 than one (1.0 is opaque).

Comments are welcomed to help make it a better demo program.  The code is
 intended to provide clear, correct use of the App Kit, rather than fast, but
 dirty code.


Carl F. Sutter
Academic Software Development Consultant
University of Southern California
University Computing Services
(213) 743-3826   sutter@ozone.usc.edu (NeXT mail)