Skip to content

Commit

Permalink
Updated Flashes to fade alpha out correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dcheesman committed Feb 16, 2014
1 parent 0987aa9 commit e91c017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Flashes.pde
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Flashes extends Effect{
imageBuffer.beginDraw();
// load buffer's pixels in to pixel[] array
imageBuffer.loadPixels();
imageBuffer.pixels[f.id] = color(f.value);
imageBuffer.pixels[f.id] = color(255, f.value);
// load pixel[] array back into image
imageBuffer.updatePixels();
imageBuffer.endDraw();
Expand Down

0 comments on commit e91c017

Please sign in to comment.