home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt!willett!ForthNet
- From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
- Newsgroups: comp.lang.forth
- Subject: Graphics, GUIs, and Events
- Message-ID: <4163.UUL1.3#5129@willett.pgh.pa.us>
- Date: 22 Nov 92 21:04:58 GMT
- Organization: EIEI-U
- Lines: 64
-
- Category 18, Topic 2
- Message 52 Sat Nov 21, 1992
- ELLIOTT.C at 10:24 EST
-
- -----via CRS Premium Bulletin Board -
- USR 16.8K Dual Standard (416) 629-7000
-
- Date: 11-14-92 (21:00)
- To: MIKE HAAS
- From: MARCEL HENDRIX
- Subj: GRAPHICS
-
- Mike Haas wrote, about Graphics
-
- mh> As an aside, I think it is interesting that Forth has no mh>
- standard graphics interface, perhaps never will, and one mh> of
- the most popular existing graphics languages is an interactive
- mh> Forth-cousin called PostScript.
-
- If Postscript weren't so slow, we could run it as a secondary
- process and send ASCII text commands to it.
-
- Our tForth graphics are handled by a ``library'' sort of
- extension called GRAPHICS.FRT that relies on a driver file for
- physical output. The default driver sends remote calls to our C-
- server via the transputer host link, but it was not very
- difficult to write a driver that translates the calls to
- Postscript and writes that to a diskfile. So I did that(*). It
- depends on the complexity of GRAPHICS.FRT of course, but our
- driver fits into a 5775 byte text file. (I use very short lines
- to plot pixels, because my knowledge of PS is, well, limited.
- Also, I do not know how to handle color yet).
-
- (*) The slowness is due to the fact that I use GOSCRIPT to
- convert the file to a binary for a HP LaserJet, which I then
- display on my screen with a another Forth program that
- interprets HP LaserJet files and writes them directly to screen
- memory (using very dirty tricks). What's clearly needed is a
- fast Display Postscript program. Any volunteers :-)
-
-
- The only point I want to make is that it is relatively easy to
- have very nice, very high-quality graphics and text in Forth, and
- using existing technology should not be that difficult. The only
- thing needed is a group of knowledgeable people that can write a
- specification of what is needed, preferably layered (must_have,
- low_res, mid_res, high_res, full-ps). I know that some people in
- this newsgroup were working on that a few months ago, but I do
- not know what they finally came up with.
-
- Marcel Hendrix, "Wisdom has never been known to enter
- the head through an open mouth"
- Dutch Forth Workshop -- overheard somewhere.
-
- NET/Mail : FS FORTH Systeme BBS West Germany ++49 7667 556
- ---
- * The GrapeVine/Ferret Face BBS * NLR,ARK * 501-753-8121 DS *
- * PostLink(tm) v1.03 GRAPEVINE (#318) : RelayNet(tm) Hub
-
- -----
- This message came from GEnie via willett. You *cannot* reply to the author
- using e-mail. Please post a follow-up article, or use any instructions
- the author may have included (USMail addresses, telephone #, etc.).
- Report problems to: dwp@willett.pgh.pa.us
-