In this coding challenge, I implement “Pixel Sorting” in Processing (Java). Using a “selection sort” algorithm, I sort the pixels of an image by brightness and hue. Code: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge #46.1...
🎥 Next video: • Coding Challenge #48: ...
🎥 All videos: • Coding Challenges
References:
🔖 Sorting Algorithms Visualized: bost.ocks.org/mike/algorithms/
Videos:
🎥 Livestream Archive: • Live Stream #70: Codin...
Related Coding Challenges:
🚂 #114 Bubble Sort Visualization: • Coding Challenge #114:...
Timestamps:
0:00 Introduction to Pixel Sorting!
0:38 You can download image and code from the code examples
1:00 Starting to Code!
1:27 Creating a blank image
1:50 Manually adding each pixel to a blank image
4:20 Discussing sorting algorithms!
5:18 Implementing the selection sort algorithm to sort the pixels by their brightness
12:23 Sorting by hue
13:12 Things you could do!
13:45 Animating the sorting process!
15:32 Testing and refactoring!
19:36 Conclusion!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: ru-vid.comjoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#pixelsorting #selectionsort #processing #java
30 июл 2024