Closed computersarecool closed 10 years ago
1.0-RC2 (available under releases) should solve this problem. Use the following client/server sketches for better testing:
import codeanticode.syphon.*;
PGraphics canvas;
SyphonClient client;
public void setup() {
size(400, 400, P2D);
client = new SyphonClient(this, "AlphaServer");
canvas = createGraphics(400, 400, P2D);
}
public void draw() {
if (client.available()) {
background(150);
fill(0);
ellipse(width/2, height/2, 200, 200);
canvas = client.getGraphics(canvas);
image(canvas, 0, 0, width, height);
}
}
import codeanticode.syphon.*;
PGraphics canvas;
SyphonServer server;
void setup() {
size(400,400, P2D);
canvas = createGraphics(400, 400, P2D);
server = new SyphonServer(this, "Alpha Test");
}
void draw() {
stroke(0);
line(0, 200, 400, 200);
line(200, 0, 200, 400);
canvas.beginDraw();
canvas.background(255, 0, 0, map(mouseX, 0, width, 0, 255));
canvas.endDraw();
image(canvas, 0, 0);
server.sendImage(canvas);
}
I'm closing this issue now, but re-open it if you find other problems with the handling of the alpha channel.
What steps will reproduce the problem?
What is the expected output? What do you see instead? Alpha! No alpha.