Advertisement
MarufA

Untitled

Apr 28th, 2013
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. int [] data;
  2.  
  3. void setup() {
  4. size(200,200);
  5.  
  6. String [] ChartInfo = loadStrings("Report.xml");
  7.  
  8.  
  9. data = int(split(ChartInfo[0], "," ));
  10.  
  11. }
  12.  
  13.  
  14. void draw() {
  15. background(255);
  16. stroke(100,0,100);
  17.  
  18. for (int i = 0; i < data.length; i++ ) {
  19.  
  20. fill( random(255), random(255), random(255), random(255));
  21. rect(i*20,0,20,data[i]);
  22.  
  23. }
  24. noLoop();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement