On Monday, June 16, 2014 1:07:24 PM UTC+2, Antoni Gual Via wrote:
[..]
> I don't want to have to access the windows API and don't need
> to be able to add a GUI to my programs. I just need to open ane
> empty window and set the color of pixels on it.
(Puts on flameproof underwear)
Here is the Forth way, which does EXACTLY what you asked.
Learn a few postscript words, write your commands to a .ps
file, and click on it with your mouse (outside Forth of course).
It will open in a new window with very high quality :-)
Or look up one of the bitmap binary formats (bmp, xbm, png, ...).
It's simpler because you don't need to learn postscript
(but it will look uglier).
I think Anton Ertl once showed the ps trick for the travelling
salesman problem (or something, maybe he'll tell you). Should
be on his Forth repository. This is even simpler because you
reuse existing code (oeps, burning oil, that hurt).
-marcel