[comp.sys.apple] How do you get shr graphics?

KMILES@CC.USU.EDU ("Kurt Miles, VAX Consultant") (08/31/89)

I have what is probably a dumb question, easily answered in the references,
except that I don't have the references, and they are not locally available
(within a 1 or 2 hour drive).

I wrote a program to plot a mandelbrot function onto the shr screen.  i
generated the numbers on aVAX, and have them in an X Y COLOR format in a file.

The program reads the data fine, and switches to the shr screen, but doesn't
plot any colors.

The matrix is 200x200.  Using ORCA/C: 


startgraph(320);

  (do this 0->199 for n; 0->199 for m)
fscanf(fp,"%d %d %d",m,n,color);
SetSolidPenPat(color);
MoveTo(n,m);
LineTo(n,m);
  (repeat above till done)

endgraph;

What am I missing?  I know I'm new at this, but from the ORCA manual, it looks
like is _should_ work.

many thanks.

Kurt
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Kurt Miles                   |      GreyMan ------>    and the    <----- DRAGON 
KMILES@USU (Bitnet)          |      ...... remember, sometimes the DRAGON wins!
KMILES@CC.USU.EDU (Internet) |                                     ------
-------------------------------------------------------------------------------
Doctoral Student in Instructional Technology at Utah State University
"Dissertation?   Doesn't that come after dinner?  I like strawberry shortcake"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^