[Gag] example JigSaw, 1% done !
Posted: Sat Sep 01, 2007 11:43 pm
Here is an example jigsaw in GS, very raw and basic!
(download both in the same directory and extract jigsaw.tgz)
(PS: the piece a1.png is missing !)
http://www.nodep.nl/downloads/newlisp/jigsaw.lsp (code)
http://www.nodep.nl/downloads/newlisp/jigsaw.tgz (Images!)
I have some remarks on this perhpas they can be cleared? ;-)
As it seems now a draw-image can only be moved by mouse-dragged when its
ontop of a canvas. An image itself does not return any tags?
When using a canvas below the Image you can see in the jigsaw.lsp example
that you see the border lines of the canvas... My question! Can Canvas get "transparent" 4
bytes color codes? instead of 3? Or is there another way to make those canvas boders dissapear?
(OR if images would return "tags" then the extra canvas is not needed and
the image itself is transparent)
How do I retrieve the gs:draw-image image size?
Tags stacking... This Jigsaw has only 9 pieces.. but using a jigsaw with 100 pieces
I need to do a whole lot of redrawing (deleting and laoding from disk)
to get the current piece ontop of the rest, thats actualy waste of cpu ;-) I there a more clever way?
Hope to fix this jigsaw to a nicer one finaly ;-)
Regards, Norman.
(download both in the same directory and extract jigsaw.tgz)
(PS: the piece a1.png is missing !)
http://www.nodep.nl/downloads/newlisp/jigsaw.lsp (code)
http://www.nodep.nl/downloads/newlisp/jigsaw.tgz (Images!)
I have some remarks on this perhpas they can be cleared? ;-)
As it seems now a draw-image can only be moved by mouse-dragged when its
ontop of a canvas. An image itself does not return any tags?
When using a canvas below the Image you can see in the jigsaw.lsp example
that you see the border lines of the canvas... My question! Can Canvas get "transparent" 4
bytes color codes? instead of 3? Or is there another way to make those canvas boders dissapear?
(OR if images would return "tags" then the extra canvas is not needed and
the image itself is transparent)
How do I retrieve the gs:draw-image image size?
Tags stacking... This Jigsaw has only 9 pieces.. but using a jigsaw with 100 pieces
I need to do a whole lot of redrawing (deleting and laoding from disk)
to get the current piece ontop of the rest, thats actualy waste of cpu ;-) I there a more clever way?
Hope to fix this jigsaw to a nicer one finaly ;-)
Regards, Norman.