daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest May 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     // handle the sketch code for pixels[i] = c
  2.     p.pixels = function(i, c) {
  3.       this.length = function() { return p.imageData.data.length; };
  4.       alert("index " + i + ", color " + c);
  5.       return 10;
  6.     };
  7.  
  8. color pink = color(255, 102, 204);
  9. color c = color(0);;
  10. for (int i = 0; i < 5; i++) {
  11.   pixels[i] = pink;
  12.   c = pixels[i];
  13. }
RAW Paste Data
Top