Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

the namespace is no longer rosado.processing but processing.core.

  • Loading branch information...
commit 75af04e5f4543aacd768ccb85db52bd90840a2a6 1 parent 43f3f46
Roland Sadowski authored
19 README.markdown
View
@@ -15,6 +15,13 @@ accessible.
to lein/maven compatibility. Untill that's finished, you pretty much
have to setup your project manually.
+If you use mave or leiningn, just add the following to your
+`project.clj`:
+
+ [processing-core/processsing.core "0.1.0"]
+
+## Manual Setup
+
Add Processing's `core.jar` to your classpath along with
clj-processing jar and you're ready to go.
@@ -30,12 +37,6 @@ to the JVM.
Then, create a JAR by running `ant` and also add the resulting file to
your CLASSPATH.
-## Clojars ##
-
-Clojars provides older versions of clj-processing:
-
- [org.clojars.automata/rosado.processing "1.1.0"]
-
## Examples ##
The `examples` directory contains a simple script to get you going.
@@ -53,6 +54,12 @@ 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.
+## License
+
+`processing.core` is distributed under Common Public License Version
+1.0. The official Processing.org's core.jar is distributed under LGPG
+and its code can be found on http://processing.org/
+
## TODO ##
* docstrings
6 build.xml
View
@@ -5,7 +5,7 @@
</description>
<!-- The JAR file to create. -->
- <property name="jarfile" location="rosado.processing.jar"/>
+ <property name="jarfile" location="processing.core.jar"/>
<target name="clean"
description="Remove generated files and directories.">
@@ -16,8 +16,8 @@
description="Create jar file.">
<jar jarfile="${jarfile}">
<fileset dir="." includes="CPL.TXT"/>
- <fileset dir="src" includes="rosado/**/*.clj"/>
- <fileset dir="src" includes="rosado/**/*.properties"/>
+ <fileset dir="src" includes="processing/**/*.clj"/>
+ <fileset dir="src" includes="processing/**/*.properties"/>
</jar>
</target>
12 examples/example2.clj
View
@@ -1,8 +1,8 @@
;; processing example
(ns example2
- (:use [rosado.processing]
- [rosado.processing.applet]))
+ (:use [processing.core]
+ [processing.core.applet]))
;; here's a function which will be called by Processing's (PApplet)
;; draw method every frame. Place your code here. If you eval it
@@ -16,14 +16,14 @@
(stroke-float 10)
(fill-float (rand-int 125) (rand-int 125) (rand-int 125))
(with-translation [(/ 200 2) (/ 200 2)]
- (with-rotation [QUARTER_PI]
+ (with-rotation [QUARTER-PI]
(begin-shape)
(vertex -50 50)
(vertex 50 50)
(vertex 50 -50)
(vertex -50 -50)
- (end-shape CLOSE)))
- (filter-kind INVERT))
+ (end-shape :close)))
+ (display-filter :invert))
(defn setup []
"Runs once."
@@ -31,7 +31,7 @@
(smooth)
(no-stroke)
(fill 226)
- (framerate 10))
+ (frame-rate 10))
;; Now we just need to define an applet:
4 project.clj
View
@@ -1,7 +1,7 @@
-(defproject org.clojars.automata/rosado.processing "1.1.0"
+(defproject processing-core/processing.core "0.1.0"
:description "A wrapper for Processing in Clojure."
:dependencies [[org.clojure/clojure "1.3.0"]
- [org.clojars.fyuryu/processing.core "1.1.0"]
+ [org.clojars.processing-core/org.processing.core "1.5.1"]
[processing-jogl "1.5.1"]
[processing-opengl "1.5.1"]
[processing-gluegen-rt "1.5.1"]])
4 src/rosado/constants.clj → src/processing/constants.clj
View
@@ -9,7 +9,7 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-;; renderers known to processing.core
+;; renderers known to org.processing.core
(def P2D PApplet/P2D)
(def P3D PApplet/P3D)
@@ -36,7 +36,7 @@
(def PI (float Math/PI))
(def HALF-PI (/ PI (float 2.0)))
(def THIRD-PI (/ PI (float 3.0)))
-(def QUARTER_PI (/ PI (float 4.0)))
+(def QUARTER-PI (/ PI (float 4.0)))
(def TWO-PI (* PI (float 2.0)))
(def DEG-TO-RAD (/ PI (float 180.0)))
8 src/rosado/processing.clj → src/processing/core.clj
View
@@ -9,7 +9,7 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-(ns rosado.processing
+(ns processing.core
(:import (processing.core PApplet PImage PGraphics PFont))
(:load "constants"))
@@ -1532,9 +1532,9 @@
;;; version number
(let [version-stream (.getResourceAsStream (clojure.lang.RT/baseLoader)
- "rosado/processing/version.properties")
+ "processing/core/version.properties")
properties (doto (new java.util.Properties) (.load version-stream))
- prop (fn [k] (.getProperty properties (str "rosado.processing.version." k)))
+ prop (fn [k] (.getProperty properties (str "processing.core.version." k)))
processing-version {:major (Integer/valueOf ^String (prop "major"))
:minor (Integer/valueOf ^String (prop "minor"))
:incremental (Integer/valueOf ^String (prop "incremental"))
@@ -1549,7 +1549,7 @@
"The version info for clj-processing, as a map containing :major :minor
:incremental and optional :qualifier keys. This version number
corresponds to the official Processing.org version with which
- clj-processing is compatible.")
+ processing.core is compatible.")
(defn
processing-version
4 src/rosado/processing/applet.clj → src/processing/core/applet.clj
View
@@ -1,5 +1,5 @@
-(ns rosado.processing.applet
- (:use [rosado.processing :except (size)])
+(ns processing.core.applet
+ (:use [processing.core :except (size)])
(:import (javax.swing JFrame)
(java.awt.event WindowListener)))
4 src/processing/core/version.properties
View
@@ -0,0 +1,4 @@
+processing.core.version.major=1
+processing.core.version.minor=5
+processing.core.version.incremental=1
+processing.core.version.interim=false
5 src/rosado/processing/version.properties
View
@@ -1,5 +0,0 @@
-rosado.processing.version.major=1
-rosado.processing.version.minor=1
-rosado.processing.version.incremental=0
-//rosado.processing.version.qualifier=master
-rosado.processing.version.interim=false
Please sign in to comment.
Something went wrong with that request. Please try again.