Update Transparency.pde

Half of 255 is not 126.

Used 127 which is IMHO the commonly accepted half.
This commit is contained in:
boubpopsyteam
2013-07-30 21:19:33 -04:00
parent c68a7f712f
commit 4eb9da9704

View File

@@ -22,7 +22,7 @@ void draw() {
image(img, 0, 0); // Display at full opacity
float dx = (mouseX-img.width/2) - offset;
offset += dx * easing;
tint(255, 126); // Display at half opacity
tint(255, 127); // Display at half opacity
image(img, offset, 0);
}