I installed Java 1.6 and the 3D library. This code runs-- nifty!
I tried running interactively like you say below, but entering (clean) at the REPL crashes it. Wait... tried it again and it worked fine. This is really cool! (Brings back memories of my Atari 800.) Timothy Pratley wrote: > source: http://groups.google.com/group/clojure/web/2dplot.clj > screenshot: http://groups.google.com/group/clojure/web/2dplot.png > > ;; Ever wanted to visualise some simple shapes but don't have matlab > handy? > ;; Here is one way to do it! > ;; Comes with some default shapes to demonstrate, > ;; but I recommend you run it interactively > ;; user=> (load-file "2dplot.clj") > ;; (clean) to remove any existing shapes > ;; (add-poly "label" x1,y1 x2,y2 ...) to add new shapes > ;; (init-view) sets the view to see everything > ;; > ;; Keyboard controls are the default java controls: > ;; forward arrow - move forward > ;; left arrow - turn left > ;; page down - look up > ;; etc... > ;; These allow you to move around the plot. > > Regards, > Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---