-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.pde
More file actions
44 lines (35 loc) · 789 Bytes
/
Copy pathsettings.pde
File metadata and controls
44 lines (35 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
class to take care of drawing and
setting the position of the graph
TODO: add features to make the visualization more
appealing. borders|legend|mouse interactions
prepare for more 'views' to dislay graph differently
or even display more than one type of graph.
*/
import java.io.*;
import java.util.*;
import java.lang.Math.*;
import processing.data.JSONObject;
import processing.data.JSONArray;
public class settings {
settings(){
background(200);
stroke(0, 0, 0);
strokeWeight(0.5);
}
void setBackground(int i){
background(i);
}
void setStrokeWeight(int i){
strokeWeight(i);
}
void setfill(int i){
fill(i);
}
void setStroke(int i, int j, int k){
stroke(i,j,k);
}
void setStroke(int i){
stroke(i);
}
}