I’m trying to use the xyScope Library: https://teddavis.org/xyscope/ .
I’d like to build something like the video demo of the library: https://vimeo.com/226597331
I managed to use an already written example from the library (the one called xtra_type) but i can’t figure out how to change the color, dimension ecc… of my oscilloscope drawing.
For example in the video, i have a quite thick light blue line, while in my code i have a very thin green line.
How do i change those parameters? I looked everywhere in the code, but i can’t figure out where and how do i have to set those parameters.
Here’s the full code of the example:
/* 
 xtra_type
 Let's draw type on the scope! 
 ANYKEY - type out
 DELETE - clear text
 » Requires Geomerative library
 
 cc teddavis.org 2017
 */
// import and create instance of XYscope
import xyscope.*;
XYscope xy;
// minim is required to generate audio
import ddf.minim.*; 
// geomerative is required to generate text points
import geomerative.*; 
RShape grp; 
RPoint[][] pointPaths;
// store our text to draw
String txtString = "";
void setup() {
  size(512, 512);
  // initialize XYscope with default/custom sound out
  xy = new XYscope(this, "");
  // initialize Geomerative
  RG.init(this);
}
void draw() {
  background(0);
  // clear waves like refreshing background
  xy.clearWaves(); 
  // render type with Geomerative
  grp = RG.getText(txtString, "FreeSans.ttf", width/2, CENTER); 
  grp.centerIn(g, 30);
  RG.setPolygonizer(RG.UNIFORMSTEP);
  RG.setPolygonizerStep(10);
  pointPaths = grp.getPointsInPaths();
  pushMatrix();
  translate(width/2, height/2); 
  if (pointPaths != null) { // only draw if we have points 
    for (int i = 0; i < pointPaths.length; i++) { 
      xy.beginShape(); 
      for (int j=0; j < pointPaths[i].length; j++) { 
        xy.vertex(pointPaths[i][j].x, pointPaths[i][j].y);
      } 
      xy.endShape();
    }
  } 
  popMatrix();
  // build audio from shapes
  xy.buildWaves();
  // draw Wave + XY analytics
  xy.drawWave();
  xy.drawXY();
}
void keyPressed() {
  if (keyCode == 8) {
    xy.clearWaves();
    txtString = "";
  } else if (keyCode != 16 && keyCode != 17 && keyCode != 18 && keyCode != 157 && keyCode != 37 && keyCode != 38 && keyCode != 39 && keyCode != 40) {
    txtString += key+"";
  }
}