In article <nnd$4b3bccb2$6e4505f6@a25ca100dba5e51f>,
Hans Bezemer <
[email protected]> wrote:
On 29-01-2025 19:49, Buzz McCool wrote:
On 1/18/2025 7:52 AM, Hans Bezemer wrote:
Ever tried to create a graphics library - only to find that even
drawing a simple line requires a degree in mathematics? What if I tell
you you can make a fully fledged graphics library in less than 200
lines, providing high quality vector graphics files which can be used
in a plethora of application programs?
https://youtu.be/_MKFQIHm_ss
Hans -
I believe you said in passing that you didn't like PostScript, but
didn't elaborate. Just curious if you have any detailed comments about
using PostScript for graphics.
Not really. It was actually as brief as I described in the video. Didn't
feel like I could quickly get that one going, so I moved to the next
option. And yes, I immediately fell in love with SVG.
Of course I don't think it's impossible to get things going in PS, the >question is - how much time do I want to put into it? Especially if I
got the functionality of vector graphics covered.
I did some programming almost directly in PostScript (Rotterdam Harbour)
I could draw the harbour almost directly from the sql database that contains the boundaries between water and land. PostScript did not mind that
there are details that are contained in one pixel.
I produced maps where the color was indicative how much chance you got from being killed by a disaster involving chemicals on ships. Also maps where a toxic waste distribution was colored in.
It was relatively easy to use real coordinates, using a matrix multiplication to generate paper coordinates.
Some maths required but no too much.
Having some pipes to a display postscript terminal could be the easiest
way to get graphics done in Forth.
dislin looks attractive too. The python examples could be realitively
easy to convert to wina using dll interface, with regexp transformation. Apparently all windows examples links to dislin.dll.
The wina examples then directly call the dll's.
Mnemonics tables using postscript are part of ciasdis.
The advantage that you
could have a mnemonic movi with hex code 8F and draw it in place
row 8 column F with bother for the order.
If you have double assigned mnemonics, or holes, that is apparent.
I recently made illustrations of how to draw sine and calculate pi for
a Forth lecture. Some time ago illustrations for continued fractions,
where points in a grid show a rational approximation.
Quite fond of PostScript and it has the reverse polish mindset.
Hans Bezemer
Groetjes Albert
--
Temu exploits Christians: (Disclaimer, only 10 apostles)
Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall
Art For Home, Office And Garden Decor - Perfect For Windows, Bars,
And Gifts For Friends Family And Colleagues.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)