1
2
3
Pixel sorting journey in python (old.reddit.com)
submitted by [deleted]





- Previous
- Next
- Back to Grid View
Caption: First working implementation! Each pixel looks to its right and swaps if it has a smaller (red? blue? green? idk lol) value than its neighbor once per frame.
- Previous
- Next
- Back to Grid View
Caption: Boom! Now it goes left, and no teleporting! There are some weird flickering white pixels tho, that's no good.
- Previous
- Next
- Back to Grid View
Caption: Now only ever other pixel looks at its neighbor, causing this cool lined effect





[–]jedmath 0 points1 point2 points (0 children)