FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update Transparency.pde · matze-van/processing@aeda949 · GitHub

Repository navigation

Commit aeda949

Browse files
committed
Update Transparency.pde
Half of 255 is not 126. Used 127 which is IMHO the commonly accepted half.
1 parent 37c2146 commit aeda949

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎java/examples/Basics/Image/Transparency/Transparency.pde‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void draw() {
2222
image(img, 0, 0); // Display at full opacity
2323
float dx = (mouseX-img.width/2) - offset;
2424
offset += dx * easing;
25-
tint(255, 126); // Display at half opacity
25+
tint(255, 127); // Display at half opacity
2626
image(img, offset, 0);
2727
}
2828

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL