How can i make an empty graph without using csv?

I don’t think there is a csv file used in the program above.

The points are generated with noise().

  • Do you want to use a csv? Then look at loadStrings() in the reference, for loop over the array and use points.add( ... ).

  • When you don’t want to use a csv and don’t want to load a csv, you can just write the data into your Sketch and parse them to points.add(....).

for example


float[][] listData = 
   {
     {112,23}, 
     {212,13}, 
     {172,17}
   };
2 Likes