Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!uunet!mcsun!ukc!edcastle!ecwu61 From: ecwu61@castle.ed.ac.uk (R Renwick) Newsgroups: comp.sys.acorn Subject: Re: Drawing lines in C Message-ID: <8810@castle.ed.ac.uk> Date: 1 Mar 91 11:55:51 GMT References: <29216.9102281711@olympus.cs.hull.ac.uk> Organization: Edinburgh University Lines: 43 In article <29216.9102281711@olympus.cs.hull.ac.uk> rst@cs.hull.ac.uk (Rob Turner) writes: >Geoffrey Ballinger writes: > >>OK, How does one do it in ML (;-)? > >You call a C library routine from your ML program, I guess :-). > An ML programmer call a C lib routine :-( Arghhhhhhhhhhhhhhhhhhh! If it can't be done in ML alone, it's not worth doing ;-) Geoff's original comment was about drawing lines in ML. Here's the standard CS4 approach at Edinburgh Uni: 1) Get some overhead projector pens (water soluble) 2) Run ML program and output co-ordinates of the object to be plotted 3) Use a ruler and plot the co-ords on the screen using OHP pen 4) Recalulate the object's co-ords 5) Use damp cloth to remove drawing from the screen 6) Goto (3) I really don't see the problem here, it's fast, efficient and requires less room than the C equivilent which takes nearly 300 giga bytes ;-) Rik =============================================================================== ############ Richard Renwick ecwu61@uk.ac.ed.castle # # Computer Science 4 OR rlr@uk.ac.ed.lfcs @ ~~~ ~~~ @ University of Edinburgh |\@ ** ** @/| Edinburgh | @ ** ** @ | |/@ || @\| @ \ || / @ @ \______/ @ "Doesn't the grass look funny from underneath?" @ @ - Penfold @@@@@@@@@@ ===============================================================================