[fpc-pascal] Turbo Pascal 3 graphics

Sven Barth pascaldragon at googlemail.com
Wed May 8 11:06:06 CEST 2019

Kevin Lyda <kevin at ie.suberic.net> schrieb am Mi., 8. Mai 2019, 10:58:

> Amazingly I still have a number of my high school computer science
> projects which were written in Turbo Pascal 3. And a few are almost
> not horribly embarrassing.
> I'd like to port them to fpc and write up the experience but I know
> what the huge issue is: it uses the graphics.bin library which was
> brought in with graph.p - a snippet of which is at the bottom of this
> email.
> It did something like turtle graphics and worked on CGA type systems
> which were comically limited. Still, it would be neat to see it run
> outside of DOSBox.
> So I'm wondering what my options are with FPC graphics. Looking
> through the code I used Draw, GotoXY, Palette, Circle and Fillshape -
> as well as IO functions like write, read and keypressed.
> Any suggestions appreciated, thanks,

You could simply use one of the Graph units provided by FPC (e.g.
PtcGraph). Though depending on the unit the colors might be 32-bit values
instead of 16-bit ones.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190508/ee597ce4/attachment.html>

More information about the fpc-pascal mailing list