https://personal.math.ubc.ca/~cass/graphics/text/www/ [me-blur2] [ Bill Casselman's home page ] Table of contents [red-ball-s] Introductory [red-ball-s] Chapters 1 - 15 [red-ball-s] Appendices [red-ball-s] Epilogue [red-ball-s] Supplement [front-smal] [red-ball-s] Code samples and packages [red-ball-s] Other reading on PostScript [red-ball-s] Other reading on mathematical graphics [red-ball-s] Errata et corrigenda [red-ball-s] Copyright notice This manual has been available on this site since about 1996, with improvements taking place frequently. The current version has been published as a book of about 350 pages by Cambridge University Press. By agreement with the Press, however, it will remain posted on this web site. Many improvements in the current version over previous ones are due to the (anonymous) referees of the Press, whom I wish to thank heartily. I also wish to thank Lauren Cowles, of the New York office of the Press, for much help with preparing the original version for publication. The paper edition [back-small] appears also in Duotone red and black. For Click here for information about this imagexxxxxxxxxx information on obtaining the paper edition, take a look at the Cambridge Press catalogue. From January 1, 2004 on, no changes except simple error corrections will be made to the main body of the text here --- at least for a while. Corrections to both paper and web editions will be found below. I am grateful to all those who have pointed out errors or lacunae in older versions of this manual, and I hope readers will continue to send me mail about what they find - both good and bad - at cass@math.ubc.ca. Copyright 2005 by Bill Casselman. Permission is granted for users of this resource to make one copy for their own personal use. Further reproduction is strictly prohibited without the express permission of the copyright holder. Introductory This text is offered in PDF format, but also in PostScript. To read the PostScript files, which are often faster to load, you will need a PostScript interpreter. But you will need one in any event in order to read the book fruitfully. You can obtain Ghostscript and viewers at the [ghost]GhostScript home pages. You will probably want to set it as the program with which your browser reads .ps files (of type application/postscript). [mps]Preface [red-ball-s] pdf [red-ball-s] ps [mps]Table of contents (for the entire text) [red-ball-s] pdf [red-ball-s] ps Chapters 1 - 15 [mps]Chapter 1 - Getting started [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 2 - Elementary coordinate geometry [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 3 - Variables and procedures [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 4 - Coordinates and conditionals [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 5 - Loops and arrays [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 6 - Curves [red-ball-s] pdf [red-ball-s] ps [mps]Interlude [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 7 - Procedures as arguments [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 8 - Non-linear transformations in 2D [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 9 - Recursion in PostScript [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 10 - Perspective and homogeneous coordinates [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 11 - Introduction to drawing in 3D [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 12 - Rigid motion in 3D [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 13 - PostScript in 3D [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 14 - Drawing surfaces in 3D [red-ball-s] pdf [red-ball-s] ps [mps]Chapter 15 - The regular polyhedra [red-ball-s] pdf [red-ball-s] ps [red-ball-s] Another way of constructing the regular polyhedra Appendices [mps]Appendix 1 - Summary of important PostScript commands [red-ball-s] pdf [red-ball-s] ps [mps]Appendix 2 - Setting up your PostScript environment [red-ball-s] pdf [red-ball-s] ps [mps]Appendix 3 - Structured PostScript documents [red-ball-s] pdf [red-ball-s] ps [mps]Appendix 4 - Simple text display [red-ball-s] pdf [red-ball-s] ps [mps]Appendix 5 - Zooming [red-ball-s] pdf [red-ball-s] ps [mps]Appendix 6 - Evaluating polynomials [red-ball-s] pdf [red-ball-s] ps [mps]Appendix 7 - Importing PostScript files [red-ball-s] pdf [red-ball-s] ps Epilogue [mps]Graphics style in exposition [red-ball-s] pdf [red-ball-s] ps Supplement [mps]Another way to construct the regular polyhedra [red-ball-s] pdf [mps]A better version of Hodgman-Sutherland [red-ball-s] pdf [red-ball-s] ps Code samples and packages The plural pictures means there are several pages. [red-ball-s] Simple diagrams from Chapter 1 (pictures) (source) [red-ball-s] Arrows [red-ball-s] Straight (pictures) (source) [red-ball-s] Curved (pictures) (source) [red-ball-s] An example of zooming in (pictures) (source) [red-ball-s] Cubes [red-ball-s] Frame, orthogonal projection (picture) (source) [red-ball-s] Frame, perspective projection (picture) (source) [red-ball-s] Solid (picture) (source) [red-ball-s] Shading (picture) (source) [red-ball-s] Shadowed (picture) (source) [red-ball-s] Moving (pictures) (source) [red-ball-s] A simple sphere in PostScript (picture) (source) [red-ball-s] A sphere with Gouraud shading (picture) (source) [red-ball-s] A doughnut in PostScript (picture) (source) [red-ball-s] A figure where chopping is necessary to make a binary space partition (picture) (source) [red-ball-s] An open box (picture) (source) [red-ball-s] The package arrows.inc [Chapter 1] [red-ball-s] The package lines.inc [Chapter 4] [red-ball-s] The package hodgman-sutherland.inc [Chapter 4] [red-ball-s] The package mkpath.inc [Chapter 7] [red-ball-s] The package transform.inc [Chapter 8] [red-ball-s] Map data in PostScript form (maps.zip) from original data at http://archive.msmonline.com/1999/12/vis2.htm (2.5 MB) [Chapter 8] [red-ball-s] The package hull.inc [Chapter 9] [red-ball-s] The package ps3d.inc [Chapter 13] [red-ball-s] The package bsp.inc - for building binary space partitions [Chapter 14] [red-ball-s] The package polyhedra.inc - for drawing regular polyhedra [Chapter 15] [red-ball-s] The PERL script psinc - for including files explicitly instead of running them [Appendix 2] [red-ball-s] The package zoom.inc [Appendix 5] [red-ball-s] The package hs.inc [Supplementary note on Hodgman-Sutherland] [red-ball-s] The package stack.inc [Supplementary note on Hodgman-Sutherland] Other references on PostScript The following official guides from Adobe are available on line: [bluebook] PostScript language tutorial and cookbook (the `blue book') - a classic, with lots of short useful samples. [greenbook] PostScript language design (the `green book') Much relevant stuff, including the PostScript language [redbook] reference language manuals (originally the `red book') - sooner or later you will have to look at this. It verges on readable. Other technical (very technical) documentation is also on line at http://partners.adobe.com/asn/tech/ps/index.jsp and http:// partners.adobe.com/asn/tech/ps/technotes.jsp. You can retrieve here, among other things, an earlier edition of the reference manual. Other Cool Things: Luc Devroye's PostScript pages with lots of further [red-ball-s] links (including one back to here) (NOTE: TEMPORARILY DEAD) [red-ball-s] Mathematical BBS on PostScript with lots of further links (including one back to here) The phrase PostScript humour may look like an oxymoron to you, but you can find an attempt at [red-ball-s] PostScript: a computer language. There is more from the same guy at http://www.prepressure.com/postscript . [red-ball-s] The incredible PostScript web server (follow link to PS-HTTPD) Don Lancaster's pages including lots of libraries of [red-ball-s] useful stuff (and also of much useless stuff). Some discussion of how to achieve transparency. On line PostScript operator dictionary (taken [red-ball-s] directly from the reference manual). The header pages are in German, but the rest in English. David Maxwell's short PS manual. David Maxwell was a [red-ball-s] graduate student here at UBC when he did these pages, but has since gone on to a More Satisfying Life. [red-ball-s] Inkguides Much stuff on fonts. Other reading on the use of illustration in mathematical exposition Pictures and proofs (an article in the October, 2000 [red-ball-s] issue of the Notices of the A.M.S. on the use of illustrations in mathematics) A review of one of Edward Tufte's classics on [red-ball-s] information graphics (from the January, 1999 issue of the Notices) Errata et corrigenda (To appear soon)