Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uwm.edu!psuvax1!swatsun!swatsun!gessel From: gessel@ilium.cs.swarthmore.edu (Daniel Mark Gessel) Newsgroups: comp.sys.next Subject: Re: Difficulties with Graphics Message-ID: Date: 20 Feb 91 20:43:01 GMT References: <11995@pt.cs.cmu.edu> <1991Feb18.213359.19939@pslu1.psl.wisc.edu> Sender: news@cs.swarthmore.edu Organization: Swarthmore College, Swarthmore Pa. Lines: 19 In-Reply-To: v_white@pslu1.psl.wisc.edu's message of 18 Feb 91 21:33:59 GMT Nntp-Posting-Host: ilium Plotting a single pixel seems to be a pain. I usually use a rectfill, but that seems horribly inneficient (anyone have a better way?). Use PSmoveto(x1,y1); PSlineto(x2,y2); PSstroke(); to draw a line. You may want to use PSsetgray(graylevel); and PSsetlinewidth(width); PSrectfill(x1,y1,x2,y2); is also nice. These are calls to PSwrapped code, so it's still basically postscript. PostScript is the way to go, it's also extremely easy to use with PSwrap and IB. Takes about a half an hour to get started, and improves your applications efficiency. It's also great to use YAP to develop your graphics! Knowing PostScript is pretty much a necessity when programming the NeXT. Dan -- Daniel Mark Gessel Internet: gessel@cs.swarthmore.edu I do not speak (nor type) representing Swarthmore College. Brought to you by Super Global Mega Corp .com