github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

rosado / clj-processing

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 66
    • 5
  • Source
  • Commits
  • Network (5)
  • Issues (1)
  • Downloads (0)
  • Wiki (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • applet
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A wrapper for Processing in Clojure. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Fixes color-int and color-float. Closes #2 
rosado (author)
Mon Feb 08 09:54:10 -0800 2010
commit  549d473ba59b5e92d7e9c128cf1c798ddb06c667
tree    6f57e80f4ec21c4d5e829a420ce8fef87d82b1cf
parent  831f50684da360fb5be5c8cf6e4a86494efb52a4
clj-processing /
name age
history
message
file .gitignore Tue Dec 01 13:57:15 -0800 2009 clj-processing now works with leiningen [rosado]
file CPL.TXT Mon Sep 08 10:39:56 -0700 2008 Added CPL license file. [rosado]
file README.markdown Mon Aug 03 10:22:43 -0700 2009 Removed mouse-*, pmouse-* functions since they ... [rosado]
file build.xml Mon Jul 20 12:36:13 -0700 2009 Sources now in src/ [rosado]
directory examples/ Thu Sep 17 11:42:18 -0700 2009 renamed simple.clj to with_proxy.clj [rosado]
file project.clj Wed Dec 09 14:10:03 -0800 2009 Clojars.org didn't work with old lein project file [rosado]
directory src/ Mon Feb 08 09:54:10 -0800 2010 Fixes color-int and color-float. Closes #2 [rosado]
README.markdown

Processing for Clojure

This lib is a wrapper for the Processing project. Mixture of Clojure and Processing enables you to do live-coding and experiment easily.

Most of the function are covered; some have a slightly different name than in Java (partly because Clojure is confused by methods of the same arity but different argument types). Most of the constants are accessible.

How To Use It?

Add your core.jar file from the Processing installation to your CLASSPATH.

To use the OpenGL features, you also have to add gluegen-rt.jar, jogl.jar and opengl.jar from the $PROCESSING_DIR/libraries/opengl/library. You also need to pass the argument:

     -Djava.library.path=`$PROCESSING_DIR/libraries/opengl/library

to the JVM.

Then, create a JAR by running ant and also add the resulting file to your CLASSPATH.

Examples

The examples directory contains a simple script to get you going.

COMMON ISSUES

clj-procesing may not work if you're using add-classpath to put the Processing jars into your CLASSPATH. Please, use a "proper" way to set up your CLASSPATH (eg. with a special script like the clj on Clojure Wiki)

If your're using Clojure's proxy macro, you'll have to define the mouse handling methods to take one argument (which is just an instance of java.awt.event.MouseEvent class) and get all needed information (like mouse position etc) from that object. Also, accessing instance fields of the PApplet class from within proxy doesn't work.

TODO

  • docstrings
  • include remaining constants
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server