Permalink
Browse files

readded libraries director

  • Loading branch information...
flyingoctopus committed Oct 11, 2012
1 parent fd5a209 commit e3d740888c23398e83367c6d3e15f5319174cfdd
Showing with 1,413 additions and 0 deletions.
  1. BIN Libraries/GML4U Patch/GML4U/library/GML4U.jar
  2. BIN Libraries/GML4U Patch/GML4U/library/hamcrest-all-1.2.jar
  3. BIN Libraries/GML4U Patch/GML4U/library/jaxen.jar
  4. BIN Libraries/GML4U Patch/GML4U/library/jdom.jar
  5. BIN Libraries/GML4U Patch/GML4U/library/log4j-1.2.15.jar
  6. BIN Libraries/GML4U Patch/GML4U/library/saxpath.jar
  7. BIN Libraries/GML4U Patch/GML4U/library/toxiclibscore.jar
  8. BIN Libraries/GML4U Patch/GML4U/library/xerces.jar
  9. +8 −0 Libraries/GML4U/library.properties
  10. BIN Libraries/GML4U/library/GML4U.jar
  11. BIN Libraries/GML4U/library/hamcrest-all-1.2.jar
  12. BIN Libraries/GML4U/library/jaxen.jar
  13. BIN Libraries/GML4U/library/jdom.jar
  14. BIN Libraries/GML4U/library/log4j-1.2.15.jar
  15. BIN Libraries/GML4U/library/saxpath.jar
  16. BIN Libraries/GML4U/library/xerces.jar
  17. BIN Libraries/activemq/library/activemq.jar
  18. BIN Libraries/bombIRBrushes (1)/library/bombIRBrushes.jar
  19. +42 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/Circle.java
  20. +41 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/Eraser.java
  21. +59 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/FatCap.java
  22. +50 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/FwdSlash.java
  23. +61 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/GhettoPaint.java
  24. +57 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/SimpleLine.java
  25. +66 −0 Libraries/bombIRBrushes (1)/src/bombir/brushes/utils/PRandom.java
  26. BIN Libraries/bombIRBrushes/library/bombIRBrushes.jar
  27. +42 −0 Libraries/bombIRBrushes/src/bombir/brushes/Circle.java
  28. +41 −0 Libraries/bombIRBrushes/src/bombir/brushes/Eraser.java
  29. +59 −0 Libraries/bombIRBrushes/src/bombir/brushes/FatCap.java
  30. +50 −0 Libraries/bombIRBrushes/src/bombir/brushes/FwdSlash.java
  31. +61 −0 Libraries/bombIRBrushes/src/bombir/brushes/GhettoPaint.java
  32. +57 −0 Libraries/bombIRBrushes/src/bombir/brushes/SimpleLine.java
  33. +66 −0 Libraries/bombIRBrushes/src/bombir/brushes/utils/PRandom.java
  34. +44 −0 Libraries/controlP5/library.properties
  35. BIN Libraries/controlP5/library/controlP5.jar
  36. BIN Libraries/oscP5/library/oscP5.jar
  37. +8 −0 Libraries/proJMS/library.properties
  38. BIN Libraries/proJMS/library/proJMS.jar
  39. +6 −0 Libraries/proJMS/log4j.properties
  40. +95 −0 Libraries/proJMS/src/projms/consumer/Consumer.java
  41. +86 −0 Libraries/proJMS/src/projms/publisher/Publisher.java
  42. +76 −0 Libraries/proJMS/src/projms/util/MessageQueue.java
  43. +76 −0 Libraries/proJMS/src/projms/util/MessageTextQueue.java
  44. +76 −0 Libraries/proJMS/src/projms/util/SimpleQueue.java
  45. +37 −0 Libraries/proJMS/src/projms/util/TypedMessage.java
  46. +68 −0 Libraries/proJMS/test/messaging/broker/EmbeddedBrokerTest.java
  47. +42 −0 Libraries/proJMS/test/messaging/broker/SimpleEmbeddedBrokerTest.java
  48. +39 −0 Libraries/proJMS/test/messaging/publisher/PublisherTest.java
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
+name = GML4U
+authorList = [Jerome Saint-Clair](http://www.saint-clair.net/)
+url = https://github.com/01010101/GML4U/wiki
+category = Data / Protocols
+sentence = A [Graffiti Markup Language](http://graffitimarkuplanguage.com/) library for Processing.
+paragraph = GML is an open file format designed to store graffiti motion data.
+version = 8
+prettyVersion = 0.1.8
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,42 @@
+/**
+ *
+ */
+package bombir.brushes;
+
+import processing.core.PApplet;
+import processing.core.PGraphics;
+import toxi.geom.Vec3D;
+import gml4u.drawing.GmlStrokeDrawer;
+import gml4u.model.GmlBrush;
+import gml4u.model.GmlPoint;
+import gml4u.model.GmlStroke;
+
+/**
+ * @author haukepauke
+ *
+ */
+public class Circle extends GmlStrokeDrawer{
+
+ public static final String ID = "BOMBIR_STYLE_CIRCLE0000";
+
+ public Circle() {
+ super(ID);
+ is3D(true);
+ }
+
+ @Override
+ public void draw(PGraphics g, GmlStroke stroke, float scale, float minTime, float maxTime) {
+ GmlBrush brush = stroke.getBrush();
+ g.stroke(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.fill(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.strokeWeight(brush.getFloat("size"));
+ g.strokeJoin(PApplet.ROUND);
+ for (GmlPoint point : stroke.getPoints()) {
+ if (point.time < minTime) continue;
+ if (point.time > maxTime) break;
+ Vec3D v = point.scale(scale);
+ g.ellipse(v.x, v.y, brush.getFloat("size"), brush.getFloat("size"));
+ }
+ }
+
+}
@@ -0,0 +1,41 @@
+package bombir.brushes;
+
+import processing.core.PApplet;
+import processing.core.PGraphics;
+import toxi.geom.Vec3D;
+import gml4u.drawing.GmlStrokeDrawer;
+import gml4u.model.GmlBrush;
+import gml4u.model.GmlPoint;
+import gml4u.model.GmlStroke;
+
+/**
+ * Eraser brush. Black brush for erasing things on a black background
+ *
+ * @author Hauke Altmann
+ *
+ */
+public class Eraser extends GmlStrokeDrawer{
+
+ public static final String ID = "BOMBIR_STYLE_ERASER0000";
+
+ public Eraser() {
+ super(ID);
+ is3D(false);
+ }
+
+ @Override
+ public void draw(PGraphics g, GmlStroke stroke, float scale, float minTime,
+ float maxTime) {
+ GmlBrush brush = stroke.getBrush();
+ g.stroke(0.0f,0.0f,0.0f);
+ g.fill(0.0f,0.0f,0.0f);
+ g.strokeWeight(brush.getFloat("size"));
+ g.strokeJoin(PApplet.ROUND);
+ for (GmlPoint point : stroke.getPoints()) {
+ if (point.time < minTime) continue;
+ if (point.time > maxTime) break;
+ Vec3D v = point.scale(scale);
+ g.ellipse(v.x, v.y, brush.getFloat("size"), brush.getFloat("size"));
+ }
+ }
+}
@@ -0,0 +1,59 @@
+/**
+ *
+ */
+package bombir.brushes;
+
+import processing.core.PApplet;
+import processing.core.PGraphics;
+import toxi.geom.Vec3D;
+import gml4u.drawing.GmlStrokeDrawer;
+import gml4u.model.GmlBrush;
+import gml4u.model.GmlPoint;
+import gml4u.model.GmlStroke;
+
+/**
+ * @author haukepauke
+ *
+ */
+public class FatCap extends GmlStrokeDrawer {
+
+ public static final String ID = "BOMBIR_STYLE_FATCAP0000";
+
+ public FatCap() {
+ super(ID);
+ is3D(true);
+ }
+
+ /* (non-Javadoc)
+ * @see gml4u.drawing.GmlStrokeDrawer#draw(processing.core.PGraphics, gml4u.model.GmlStroke, float, float, float)
+ */
+ @Override
+ public void draw(PGraphics g, GmlStroke stroke, float scale, float minTime,
+ float maxTime) {
+ GmlBrush brush = stroke.getBrush();
+ float diam;
+
+ g.stroke(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.fill(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.strokeJoin(PApplet.ROUND);
+ Vec3D previousPoint = new Vec3D();
+ boolean firstPoint = true;
+ for (GmlPoint point : stroke.getPoints()) {
+ if (point.time < minTime) continue;
+ if (point.time > maxTime) break;
+ Vec3D v = point.scale(scale);
+ diam = (float) (PApplet.abs(v.y - brush.getFloat("height")/2)*.18);
+ g.strokeWeight(diam);
+ g.ellipse(v.x, v.y, diam, diam);
+ if(firstPoint){
+ g.line(v.x, v.y, v.x, v.y);
+ firstPoint = false;
+ }else{
+ g.line(v.x, v.y, previousPoint.x, previousPoint.y);
+ }
+ previousPoint = v;
+ }
+
+ }
+
+}
@@ -0,0 +1,50 @@
+/**
+ *
+ */
+package bombir.brushes;
+
+import processing.core.PApplet;
+import processing.core.PGraphics;
+import toxi.geom.Vec3D;
+import gml4u.drawing.GmlStrokeDrawer;
+import gml4u.model.GmlBrush;
+import gml4u.model.GmlPoint;
+import gml4u.model.GmlStroke;
+
+/**
+ * FWD SLASH
+ *
+ * @author haukepauke
+ *
+ *
+ */
+public class FwdSlash extends GmlStrokeDrawer {
+
+ public static final String ID = "BOMBIR_STYLE_FWDSLASH0000";
+
+ public FwdSlash() {
+ super(ID);
+ is3D(true);
+ }
+
+ /* (non-Javadoc)
+ * @see gml4u.drawing.GmlStrokeDrawer#draw(processing.core.PGraphics, gml4u.model.GmlStroke, float, float, float)
+ */
+ @Override
+ public void draw(PGraphics g, GmlStroke stroke, float scale, float minTime,
+ float maxTime) {
+ GmlBrush brush = stroke.getBrush();
+ g.stroke(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.fill(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.strokeWeight(brush.getFloat("size"));
+ g.strokeJoin(PApplet.ROUND);
+ for (GmlPoint point : stroke.getPoints()) {
+ if (point.time < minTime) continue;
+ if (point.time > maxTime) break;
+ Vec3D v = point.scale(scale);
+ g.line(v.x+brush.getFloat("size"), v.y-brush.getFloat("size"), v.x-brush.getFloat("size"), v.y+brush.getFloat("size"));
+ }
+
+ }
+
+}
@@ -0,0 +1,61 @@
+/**
+ *
+ */
+package bombir.brushes;
+
+import java.util.Random;
+
+import bombir.brushes.utils.PRandom;
+
+import processing.core.PApplet;
+import processing.core.PGraphics;
+import toxi.geom.Vec3D;
+import gml4u.drawing.GmlStrokeDrawer;
+import gml4u.model.GmlBrush;
+import gml4u.model.GmlPoint;
+import gml4u.model.GmlStroke;
+
+/**
+ * @author haukepauke
+ *
+ */
+public class GhettoPaint extends GmlStrokeDrawer {
+
+ public static final String ID = "BOMBIR_STYLE_GHETTOPAINT0000";
+ PRandom prandom;
+
+ public GhettoPaint() {
+ super(ID);
+ is3D(true);
+ prandom = new PRandom();
+ }
+
+ /* (non-Javadoc)
+ * @see gml4u.drawing.GmlStrokeDrawer#draw(processing.core.PGraphics, gml4u.model.GmlStroke, float, float, float)
+ */
+ @Override
+ public void draw(PGraphics g, GmlStroke stroke, float scale, float minTime,
+ float maxTime) {
+ GmlBrush brush = stroke.getBrush();
+ g.stroke(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.fill(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.strokeWeight(brush.getFloat("size"));
+ g.strokeJoin(PApplet.ROUND);
+ Random rand = new Random((long)(Float.parseFloat((brush.getFloat("randomseed").toString()))));
+ for (GmlPoint point : stroke.getPoints()) {
+ if (point.time < minTime) continue;
+ if (point.time > maxTime) break;
+ Vec3D v = point.scale(scale);
+ for(int i = 0; i < 15; i++) {
+ float theta = prandom.random(0, 4 * PApplet.PI);
+ int radius = (int)prandom.random(0, 30);
+ int x = (int)(v.x) + (int)(PApplet.cos(theta)*radius);
+ int y = (int)(v.y) + (int)(PApplet.sin(theta)*radius);
+ //g.ellipse(x,y,0.5f,0.5f);
+ g.point(x,y);
+ }
+ }
+
+ }
+
+}
@@ -0,0 +1,57 @@
+/**
+ *
+ */
+package bombir.brushes;
+
+import processing.core.PApplet;
+import processing.core.PGraphics;
+import toxi.geom.Vec3D;
+import gml4u.drawing.GmlStrokeDrawer;
+import gml4u.model.GmlBrush;
+import gml4u.model.GmlPoint;
+import gml4u.model.GmlStroke;
+
+/**
+ * SIMPLE LINE
+ *
+ * @author haukepauke
+ *
+ */
+public class SimpleLine extends GmlStrokeDrawer {
+
+ public static final String ID = "BOMBIR_STYLE_SIMPLELINE0000";
+
+ public SimpleLine(){
+ super(ID);
+ is3D(true);
+ }
+
+ /* (non-Javadoc)
+ * @see gml4u.drawing.GmlStrokeDrawer#draw(processing.core.PGraphics, gml4u.model.GmlStroke, float, float, float)
+ */
+ @Override
+ public void draw(PGraphics g, GmlStroke stroke, float scale, float minTime,
+ float maxTime) {
+ GmlBrush brush = stroke.getBrush();
+ g.stroke(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.fill(brush.getFloat("red"),brush.getFloat("green"),brush.getFloat("blue"),brush.getFloat("alpha"));
+ g.strokeWeight(brush.getFloat("size"));
+ g.strokeJoin(PApplet.ROUND);
+ Vec3D previousPoint = new Vec3D();
+ boolean firstPoint = true;
+ for (GmlPoint point : stroke.getPoints()) {
+ if (point.time < minTime) continue;
+ if (point.time > maxTime) break;
+ Vec3D v = point.scale(scale);
+ if(firstPoint){
+ g.line(v.x, v.y, v.x, v.y);
+ firstPoint = false;
+ }else{
+ g.line(v.x, v.y, previousPoint.x, previousPoint.y);
+ }
+ previousPoint = v;
+ }
+
+ }
+
+}
@@ -0,0 +1,66 @@
+package bombir.brushes.utils;
+
+import java.util.Random;
+
+
+/**
+ * Copied sourcecode from https://code.google.com/p/processing/source/browse/trunk/processing/core/methods/demo/PApplet.java
+ * for using the same random function then in processing
+ *
+ * @author Hauke Altmann
+ *
+ */
+public class PRandom {
+
+ Random internalRandom;
+
+ /**
+ * Return a random number in the range [0, howbig).
+ * <P>
+ * The number returned will range from zero up to
+ * (but not including) 'howbig'.
+ */
+ public final float random(float howbig) {
+ // for some reason (rounding error?) Math.random() * 3
+ // can sometimes return '3' (once in ~30 million tries)
+ // so a check was added to avoid the inclusion of 'howbig'
+
+ // avoid an infinite loop
+ if (howbig == 0) return 0;
+
+ // internal random number object
+ if (internalRandom == null) internalRandom = new Random();
+
+ float value = 0;
+ do {
+ //value = (float)Math.random() * howbig;
+ value = internalRandom.nextFloat() * howbig;
+ } while (value == howbig);
+ return value;
+ }
+
+
+ /**
+ * Return a random number in the range [howsmall, howbig).
+ * <P>
+ * The number returned will range from 'howsmall' up to
+ * (but not including 'howbig'.
+ * <P>
+ * If howsmall is >= howbig, howsmall will be returned,
+ * meaning that random(5, 5) will return 5 (useful)
+ * and random(7, 4) will return 7 (not useful.. better idea?)
+ */
+ public final float random(float howsmall, float howbig) {
+ if (howsmall >= howbig) return howsmall;
+ float diff = howbig - howsmall;
+ return random(diff) + howsmall;
+ }
+
+
+ public final void randomSeed(long what) {
+ // internal random number object
+ if (internalRandom == null) internalRandom = new Random();
+ internalRandom.setSeed(what);
+ }
+
+}
Binary file not shown.
Oops, something went wrong.

0 comments on commit e3d7408

Please sign in to comment.