Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // handle the sketch code for pixels[i] = c
- p.pixels = function(i, c) {
- this.length = function() { return p.imageData.data.length; };
- alert("index " + i + ", color " + c);
- return 10;
- };
- color pink = color(255, 102, 204);
- color c = color(0);;
- for (int i = 0; i < 5; i++) {
- pixels[i] = pink;
- c = pixels[i];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement