www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/24/15:30:30

From: "Elias Pschernig" <f DOT x DOT gruber-museum-arnsdorf AT magnet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: no graphics, only graph
Date: Sun, 24 May 1998 20:09:04 +0200
Organization: magnet Internet Services
Lines: 28
Message-ID: <6k9p1k$phh$1@orudios.magnet.at>
References: <35674f59 DOT 7101793 AT news DOT infonie DOT fr>
NNTP-Posting-Host: 195.3.67.195
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

hellweb AT hotmail DOT com schrieb in Nachricht
<35674f59 DOT 7101793 AT news DOT infonie DOT fr>...
>Hi,
>
>This is the second time I am asking this question, because it's
>becoming quite urgent :
>I would like to make a function that would plot and join points on a
>full screen graph. this has to be printed then. If you don't know the
>all thing ( or even if you think I should fulfill it on my own !)
>could you give me a clue.
>
>PS : this has to be C, not C++; under DOS; the quicker the better
>(yesterday would be cool !)
>
>Thanks for any help
>
>Hellweb

AFAIK you can't plot points in text mode.
So you'll need a grafix lib - the best choice would be Allegro.
With Allegro, you could do "putpix(x,y,color);" to plot the points;
For linear interpolation, you could use "line(x1,y1,x2,y2,color);"

hth,
Elias Pschernig


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019