Hey, I'm trying to make a paint program, but for some reason when I try to use the transparency it shows up as a darker shade of what I want. The code I attached shows the issue. the commented out section is the desired effect, and I need to have multiple PGraphics. Each PGraphic is a different layer, so the actual program with display them on top of each other. Any suggestions or things I didn't explain well?
stroke(30-(dist(x_start, y_start, mouseX, mouseY))/10, 255, 255); //color of line
line(x_start, y_start, mouseX, mouseY);}
else
{line(x_start, y_start, x_end, y_end);}
arrow(20, 20, s);
}
edit: the ultimate goal is to make a game fairly similar to Bowman. The angle of the line you drag is the projectile ange, and it's magnitude is the force shot with. I'm trying to work out the horizontal motion first. I found how to do it, but since the code that moves the arrow is within the mouseReleased function it only gets called once and doesn't make it appear to be moving.