Uploaded May 2025 | Updated November 2026, 20 hours ago
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
Links:
π p5.js editor: editor.p5js.org
π Pixel Sorting Code: editor.p5js.org/pattvira/sketches/Z7ET7t0s6
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
Inspiration:
π Kim Asendorf:
- Website: kimasendorf.com & https://teh.kim/
- ASDFPixelSort Code: github.com/kimasendorf/ASDFPixelSort
- COMPLEX exhibition: instagram.com/p/DH74KaOx24M/?hl=en
References:
π p5.js loadPixels() function: p5js.org/reference/#/p5.Oscillator
π Javascript sort function: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
Timestamps:
0:00 Intro
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
LET'S CONNECT
β¨ Sign up for my newsletter at pattvira.com
β¨ Instagram: instagram.com/pattvira
β¨ Twitter: twitter.com/pattvira
--
Links:
π p5.js editor: editor.p5js.org
π Pixel Sorting Code: editor.p5js.org/pattvira/sketches/Z7ET7t0s6
π Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn
Inspiration:
π Kim Asendorf:
- Website: kimasendorf.com & https://teh.kim/
- ASDFPixelSort Code: github.com/kimasendorf/ASDFPixelSort
- COMPLEX exhibition: instagram.com/p/DH74KaOx24M/?hl=en
References:
π p5.js loadPixels() function: p5js.org/reference/#/p5.Oscillator
π Javascript sort function: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
Timestamps:
0:00 Intro
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










