How do I sort pixels in the pixels[] array?

edited January 2016 in How To...

I want to get an image and take its pixels and load them into a shape, how do I know which pixels from the pixels[] array? The fact that some HD images are over millions of pixels is kinda of unsettling. How can I sort the pixels?


  • What do you mean please?

    a shape has a form and one color... so you can't move all colors.....?

    And why sort? By Brightness?

    Please show your code

    Basic idea: the array pixels holds all pixels

    You can go through them with a double / nested for-loop, for each row all columns (like in a grid)

Sign In or Register to comment.