[Gag] illusions

Started by newdep, September 04, 2007, 12:39:26 PM

Previous topic - Next topic

newdep

(load "http://www.nodep.nl/downloads/newlisp/illusion1.lsp">//http://www.nodep.nl/downloads/newlisp/illusion1.lsp")



This is a test illusion Gag,

(dont look at it too long)  though it generates once every X times an error ->





newLISP-GS v.1.01

 double buffering supported.

 listening on 47011

 accepted connection from 0.0.0.0

 connecting to 0.0.0.0:47012

 retrying to connect

server connected

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3 >= 0

        at java.util.Vector.elementAt(Unknown Source)

        at CanvasWidget$MyCanvas.render(CanvasWidget.java:612)

        at CanvasWidget$MyCanvas.paint(CanvasWidget.java:577)

        at javax.swing.JComponent.paintToOffscreen(Unknown Source)

        at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)

        at javax.swing.RepaintManager.paint(Unknown Source)

        at javax.swing.JComponent._paintImmediately(Unknown Source)

        at javax.swing.JComponent.paintImmediately(Unknown Source)

        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

        at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

        at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)

        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

        at java.awt.event.InvocationEvent.dispatch(Unknown Source)

        at java.awt.EventQueue.dispatchEvent(Unknown Source)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        at java.awt.EventDispatchThread.run(Unknown Source)











I cant realy find what it is because I think I do it all by the book? Or not? ;-)





Norman.
-- (define? (Cornflakes))

newdep

#1
This is illusion 2, hypnothic ! dont look at at it long..



(load "http://www.nodep.nl/downloads/newlisp/illusion2.lsp">//http://www.nodep.nl/downloads/newlisp/illusion2.lsp")



No errors, nothing special , just a nice big Screen fillup illusion...
-- (define? (Cornflakes))

Lutz

#2
Very hypnotic ;-). Once in a while circles are deleted before drawing (in Illusuion1.lsp), which causes the out of bounds error messages.



Lutz

newdep

#3
Oke thanks...







(load "http://www.nodep.nl/downloads/newlisp/illusion3.lsp">//http://www.nodep.nl/downloads/newlisp/illusion3.lsp")



relaxed illusion 3 screen fillup...
-- (define? (Cornflakes))

newdep

#4
oke oke last one...a little semi-rain



(load "http://www.nodep.nl/downloads/newlisp/illusion4.lsp">//http://www.nodep.nl/downloads/newlisp/illusion4.lsp")
-- (define? (Cornflakes))

Lutz

#5
I would put the drawing loops into a


(while (gs:check-event 10000)
....
)


loop If not, when killing your program, the gs:listen loop keeps on running and prevents the newLISP from exiting. See frameless-demo.lsp for an example.



Lutz

newdep

#6
aaa thanks for the tip ;-)



Here an extra Fractal Illusion5.lsp ;-)



(load "http://www.nodep.nl/downloads/newlisp/illusion5.lsp">//http://www.nodep.nl/downloads/newlisp/illusion5.lsp")



aaa updated thisone with some example settings inside the code...
-- (define? (Cornflakes))

cormullion

#7
these are cool...!



I will take them along to my optician to explain my eye problems... :-)

newdep

#8
Lutz,



Does illusion3.lsp work on the MAC? because on WinXP its not doing

any random ;-) Linux its ok..windows it stays on 2 coordinates.. odd..







PS:

Its even stranger !!



On my Laptop (XP pro) it does not do any random at all..



Om WinXP desktop its somehow refreching far to often...

But random is good...



very odd...must be a network or OS issue regarding CPU speed or NIC..

Mmmm never mind...



PS2:



Owww man... Windows is realy BAD in threading...hahahaha...

Those CPU cycles are moving anywhere except to the right process ..hahaha





Norman.
-- (define? (Cornflakes))

Lutz

#9
QuoteDoes illusion3.lsp work on the MAC?


seems to work fine on Mac OS X



Lutz