generativedesign - OPENGL / JAVA2D issue
in
Contributed Library Questions
•
8 months ago
for some reason I can't get the Tablet example from generativedesign working with OPENGL / P2D / P3D render.
I need this because of I want to use Syphon.
Here's the sketch to try it out. Without OPENGL it will display the line and give the pressure value != 0.
Any clue?
- import generativedesign.*;
- import processing.opengl.*;
- Tablet tablet;
- void setup() {
- size(640, 480,OPENGL);
- tablet = new Tablet(this);
- background(0);
- stroke(255);
- }
- void draw() {
- if (mousePressed) {
- strokeWeight(30 * tablet.getPressure());
- line(pmouseX, pmouseY, mouseX, mouseY);
- println("pressure = "+tablet.getPressure());
- }
- }
1