Loading...
Logo
Processing Forum
Hi,

Is it possible to draw shapes (rect, ellipse, etc) onto pixels after declaring loadPixels()?  In the tutorials, I only see assigning colors to pixels one by one, e.g. pixels[5] = color c.  But I'd like to be able to draw an ellipse onto my picture, then update pixels accordingly.  Is this possible?

Gene

Replies(1)

There is no hard-core rule, it depends on the graphics mode and on what you do with the loaded pixels (only reading? writing?). But basically, you can do that. Just try?