Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int [] data;
- void setup() {
- size(200,200);
- String [] ChartInfo = loadStrings("Report.xml");
- data = int(split(ChartInfo[0], "," ));
- }
- void draw() {
- background(255);
- stroke(100,0,100);
- for (int i = 0; i < data.length; i++ ) {
- fill( random(255), random(255), random(255), random(255));
- rect(i*20,0,20,data[i]);
- }
- noLoop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement