Facebook
From Ruslanna, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 106
  1. size(150, 150);
  2. background(120);
  3.  
  4. int a = 23;
  5. int b = -25;
  6. int c = 47;
  7. int d = -12;
  8. int e = -89;
  9.  
  10. textSize(14);
  11.  
  12. if(a>0){
  13.   fill(0,255,0);
  14. } else {
  15.   fill(255,0,0);
  16. }
  17.  text(abs(a),10,20);
  18.  
  19.  if(b>0){
  20.   fill(0,255,0);
  21. } else {
  22.   fill(255,0,0);
  23. }
  24.  text(abs(b),35,20);
  25.  
  26.  if(c>0){
  27.   fill(0,255,0);
  28. } else {
  29.   fill(255,0,0);
  30. }
  31.  text(abs(c),60,20);
  32.  
  33.  if(d>0){
  34.   fill(0,255,0);
  35. } else {
  36.   fill(255,0,0);
  37. }
  38.  text(abs(d),95,20);
  39.  
  40.  if(e>0){
  41.   fill(0,255,0);
  42. } else {
  43.   fill(255,0,0);
  44. }
  45.  text(abs(e),120,20);
  46.  
  47.  save("activity_9");