Git Product home page Git Product logo

cloojquil's Introduction

Clooj/Processing Starter Project

Ever wanted to write Processing sketches in Clojure? This is a quick-start project folder for the Clooj environment by Arthur Edelstein that contains a pre-built Quil library and requisite Processing libraries.

Note that as Quil is changed, the library (i.e. quil-1.0.0-SNAPSHOT.jar) included here may not; I'm including it pre-built here for ease of use and setup. I will try to update it as necessary, though!

These instructions are also available here. Building Quil is as simple as doing lein jar. (Yay Leiningen!)


How To Use

  1. Clone or Download the Starter Project into a directory of your choice
  2. Download Clooj standalone and run it
  3. In Clooj, do Project > Open... and point at your new CloojProcessingProject folder
  4. Click on one of the example scripts in the src/ directory
  5. Hit Command-E to run it.
  6. Enjoy! Note that you don't have to close the applet window to change the code—try changing some code in the (draw) function and hit Command-Enter. Voila, the applet reflects your changes without restarting it! (This is buggy in OpenGL at the moment but works well for regular sketches.)
  7. For reference to the names of Processing functions in Quil, check out their API documentation.

For OpenGL Support

  1. I made a startClooj.sh script that you need to run instead of just double-clicking on Clooj. Do chmod +x startClooj.sh (if necessary) and then ./startClooj.sh.
    1. Why is this necessary? For whatever reason, to enable OpenGL support, java has to be started with the java.library.path set to the path of Processing's OGL dynamic libraries. These are different for different operating systems, so I'm not including all of them here. Hence, you'll need Processing installed.
    2. The script assumes that:
      1. You have Processing installed in /Applications. If you don't have Processing, download it and put it wherever, and change the startClooj script to point at it.
      2. Clooj is in /Applications and is named clooj-0.2.8-standalone.jar. If not, just change it in the script.

Learning Clojure

Licensing

My understanding is that Processing's libraries (core.jar, gluegen-rt.jar, jogl.jar and opengl.jar) are licensed under the GNU Lesser General Public License, so I'm including them here for ease of use.

cloojquil's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

clojure-land

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.