serialVisualization/visualizationtest/visualizationtest.pde

39 lines
704 B
Plaintext
Raw Normal View History

2019-06-09 14:43:53 +00:00
float rawvalue=50;
float xoff = 0.0;
float xoff2 = 25532.32;
Visualization vis;
void setup() {
size(640, 360);
//vis = new BarV(150,150,10,100,0,100);
//vis = new BarH(150,150,100,10,0,100);
//vis = new Tacho(150,150,100,0,100);
2019-06-10 09:53:01 +00:00
//vis = new Direction(150,150,100,0,100,0,1,PI/2);
2019-06-10 09:53:42 +00:00
vis = new GraphRoll(150,150,200,100,0,100, 1);
2019-06-09 14:43:53 +00:00
2019-06-10 09:53:01 +00:00
vis.setShowMinMax(false);
2019-06-09 14:43:53 +00:00
vis.setTitle("Testwert");
}
void draw() {
background(255);
2019-06-10 09:53:42 +00:00
//rawvalue +=random(-10,10);
//rawvalue = constrain(rawvalue, 0,100);
2019-06-09 14:43:53 +00:00
xoff += 0.01;
xoff2 += 0.004;
2019-06-10 09:53:42 +00:00
rawvalue=noise(xoff) * 100;
2019-06-09 14:43:53 +00:00
vis.setValue(rawvalue);
//for direction with length
//vis.setValue2(noise(xoff2));
vis.drawVis();
}