tint() on copy()?
in
Programming Questions
•
1 year ago
Hey there,
I stumbled upon an interesting thing today: tint() does not work if I use copy() to display a part of an image.
Here's the code I used for testing purposes:
I stumbled upon an interesting thing today: tint() does not work if I use copy() to display a part of an image.
Here's the code I used for testing purposes:
- PImage testimg;
void setup() {
size(600,180);
testimg = loadImage("03.jpg");
}
void draw() {
tint(0,255,255);
copy(testimg,0,0,600,180,0,0,600,180);
}
If I just want to lower the opacity I can use the mask() method, but I want to tint the copied image. How can I achieve that? Any suggestions?
Thanks in advance,
krys
Thanks in advance,
krys
1