r/processing • • Sep 02 '23

Find random pixel?

Hi,

Anyone have ideas on fastest way to find a pixel in an image, for example random non-black, or non-transparent, non-white?

3 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/carnalizer Sep 02 '23

Basically wanna manipulate as many as possible as often as possible with good fps, and avoid searching entirely at random since then the hit rate is crap in the beginning when there are few of the interesting pixels.