Create drawings on a canvas

For the Compleat Fan
Locked
pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Create drawings on a canvas

Post by pjot »

Hi newLispers,

With the GTK-server it is possible to create a drawing on a canvas. I made a demonstration here:

http://www.gtk-server.org/canvas.lsp

The latest configfile is needed also:

http://www.gtk-server.org/gtk-server.cfg


---------------
If you want to use the mousefunctions, then get 2.0.4beta from here:
http://www.gtk-server.org/beta/gtk-server.c

Win32 executable (replace the 2.0.3 one):
http://www.gtk-server.org/beta/gtk-server.exe
--------------


This week I will release GTK-server 2.0.4 so then the canvas demo should work out-of-the-box.

Regards
Peter

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

GTK-server 2.0.4 was released today.

Now the canvas demo works out-of-the-box both in Linux and Windows. Just install 2.0.4 and run "canvas.lsp".

http://www.gtk-server.org/canvas.lsp


Enjoy!

Peter
Last edited by pjot on Wed Jul 27, 2005 10:47 pm, edited 1 time in total.

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

Also I ported my KSH fractal drawing program to newLisp. Source and screenshot:

http://www.gtk-server.org/apps.html


Works both on Linux and Windows. The speed with which newLisp draws the fractal is really impressing, by the way. On my machine, KornShell needs about 9 minutes to complete the drawing, with newLisp it takes only 15 seconds!

Peter

statik
Posts: 58
Joined: Thu Apr 14, 2005 1:12 am

Post by statik »

If those benchmarks don't show you any contrast, I don't know what will. :) Amazing.
-statik

PaipoJim
Posts: 20
Joined: Fri Jun 03, 2005 3:21 pm
Location: Oregon

Re: Create drawings on a canvas

Post by PaipoJim »

pjot wrote:Hi newLispers,

With the GTK-server it is possible to create a drawing on a canvas. I made a demonstration here: ...

It is always a pleasure to read your well formatted code! However, I much prefer the formatting scheme for parentheses that you used in "fractals.lsp" to the one you employed in "canvas.lsp".
:-)

PaipoJim
Posts: 20
Joined: Fri Jun 03, 2005 3:21 pm
Location: Oregon

Re: Create drawings on a canvas

Post by PaipoJim »

pjot wrote:Hi newLispers,

With the GTK-server it is possible to create a drawing on a canvas. I made a demonstration here: ...

It is always a pleasure to read your well formatted code! However, I much prefer the formatting scheme for parentheses that you used in "fractals.lsp" to the one you employed in "canvas.lsp".
:-)

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

I much prefer the formatting scheme for parentheses that you used in "fractals.lsp" to the one you employed in "canvas.lsp"
Yes, well, me too, but the canvas demo is to be read by non-newLispers also, that's why I wrote it that way...

Peter

Locked