Serial plotter over bluetooth

Examples of fading:

There may be others…

Slimmed down (to just a line) version of fading I use:

int i;
int alpha;

public void setup() 
  {
  size(512, 200);   
  background(0);
  }

public void draw() 
  {   
  background(0);
  
  i = 300; 
   
  for(int j = 0; j<i; j++)
    {
    alpha = 0;
    if (j > i - 255)
    alpha = 255 - (i - j);  // tail fades away 
      
    stroke(0, 255, 0, alpha);
    strokeWeight(10);
    point(j, height/2); 
    }  
  }

I used the above for my scrolling ECG plot:

:)