We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have no idea if i'm missing something crucial here but:
tint(0,0);
tint(color(x,0));
tint(color(0,0));
Is giving different results... With the first line the image becomes invisible, with the second line you get a grey image if x > 0. With the third line however the image becomes black, and not transparant at all.
Is this a bug or does it have to do something with color representation?
Answers
It's got a lot to do with color representation. A color is really an int. And the tint() function does things differently depending on the types you pass it. https://processing.org/reference/tint_.html
Ok i'm a bit confused still, looking at the reference it says:
but there is no tint(rgba), while tint(color(x,0)) with x>0 still does effect the image alpha? I can imagine the integer representation for alpha 0 or alpha undefined is the same but there still should be a tint(rgba) in that list right?
Actually
tint(rgb)
istint(argb)
.