Skip to content

Commit 116590a

Browse files
committed
CodeReview: Add comment to FilterUI user interaction highlighting
1 parent 604ab22 commit 116590a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OpenBCI_GUI/FilterUI.pde

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ class FilterUIPopup extends PApplet implements Runnable {
169169
rect(0, 0, width, height);
170170

171171
// Draw visual feedback that a channel was modified
172+
// When a user interacts with an object for a channel, it will highlight blue and fade out
172173
if (masterFilterSettingWasModified) {
174+
// Fade out the color alpha value from 190 to 0 over time (ex. 1 second)
173175
int timeDelta = millis() - masterFilterSettingWasModifiedFadeCounter;
174-
// Fade the color alpha value from 190 to 0
175176
int alphaFadeValue = (int)map(timeDelta, 0, filterSettingWasModifiedFadeTime, 190, 0);
176177
fill(color(57, 128, 204, alphaFadeValue)); //light blue from TopNav
177178
noStroke();

0 commit comments

Comments
 (0)