Pixel Sorting

🔗 Code Example: Pixel Sorting

🔗 Inspiration:

🔗 References:

🔗 Timestamps:

  • 0:46 Explain pixel sorting logic

  • 1:48 Preload and resize image

  • 4:50 loadPixels() vs p5.Image.loadPixels()

  • 8:41 Explain how to change pixel values using updatePixels()

  • 11:09 Write a function to sort pixels by column

  • 22:50 Change to dark mode (brightness is less than threshold)

  • 23:24 Write a function to sort pixels by row

  • 26:30 Animate the sorting action

Previous

Reaction Diffusion

Next

Paper Shredding Effect