google / clojure-turtle

A Clojure library that implements the Logo programming language in a Clojure context
Apache License 2.0
426 stars 41 forks source link

save the window contents to a file #33

Open echeran opened 7 years ago

echeran commented 7 years ago

It would nice to have a save fn that stores the screen contents to a file.

Trying to require quil.core and use the image output API wasn't sufficient. Or perhaps I'm missing something.

If Quil's save fns only work within sketch fns, it may mean clojure-turtle would need to wrap that behavior such that save only executes once, not every time Quil draws a new frame (ex: 30 or 60 times / second).

If this functionality is feasible, it should be feasible in Java Clojure. It may be possible in CLJS too, but I'm not sure what the differences would be between the standard REPL from a CLJ-bundled Jar and a npm-based CLJS REPL.

ofenerci commented 7 years ago

Hello, It would be nice to have this kind of functionality.

Is there a way of knowing all turtle methods that clojure-turtle provides? Suc as in https://docs.python.org/2/library/turtle.html