Advertisement
Guest User

Untitled

a guest
May 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement