Coding Challenge #47: Pixel Sorting in Processing

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 442

  • @atomicnumber80
    @atomicnumber80 6 років тому +78

    cringe...?? why, because he's a happier person than you?
    you're amazing, Dan!

  • @noelearlwatson2724
    @noelearlwatson2724 7 років тому +144

    This is the least "cringy" channel I have seen. I have been following you since the start of last summer and you really have inspired me to continue to program stuff.

  • @3mroos4
    @3mroos4 7 років тому +247

    Who writes cringe? Let me at him!
    No but seriously, I think Dan is like the coolest teacher ever!

  • @incorporealnuance
    @incorporealnuance 4 роки тому +11

    You know, if you could reverse this sort by recording all the pixel sorting, you could make a really interesting way to cryptographically hide the contents of an image, with the reverse sort instructions being the key

  • @jibxjib
    @jibxjib 7 років тому +58

    I love this channel so much. Makes procrastinating better !

  • @FickPockLGD
    @FickPockLGD 7 років тому +7

    i've been watching this coding cahllenges for 2 hours now. One of the best channels i've seen and im waiting for more coding challenges videos. Excellent work, keep it up

    • @TheCodingTrain
      @TheCodingTrain  7 років тому +4

      So nice to hear, thank you!!

    • @FickPockLGD
      @FickPockLGD 7 років тому +1

      I can't believe you replied to me! I'm so happy right now, literally you inspire me to be a programmer :DDD

  • @EdensPersona
    @EdensPersona 7 років тому +62

    I found this channel not to long ago and it has quickly become one my favourites. I absolutely love following along to all of your coding challenge videos!

    • @ARatQuiRit
      @ARatQuiRit 7 років тому

      I wil bingewatch all "Coding challenge" playlist tonight ^^ (not sure for spelling lol)

  • @letsgocamping88
    @letsgocamping88 7 років тому +49

    Coding challenge, sudoku puzzle solver. Either using recursion to solve or try to emulate a human method of solving! Great channel BTW

    • @OKay5067
      @OKay5067 5 років тому

      I wrote a blog about it so maybe you wanna have a look: opensourc.es/blog/sudoku

  • @GG43V3R
    @GG43V3R 7 років тому +22

    I LOVE YOUR SINGING AND DANCING AND FLOWER LOVING COMMENTS AND RAINBOWS!!

  • @zlyfer
    @zlyfer 7 років тому +28

    As a german hobby programmer these Coding Challenges are probably the best in the world.

    • @zawzero
      @zawzero 7 років тому +7

      How does it matter you are German?

    • @zlyfer
      @zlyfer 7 років тому +4

      Because with english as my second language it's easy to understand what he says but not so easy to understand the jokes everytime. I think he is very funny and good in explaining things.

    • @zawzero
      @zawzero 7 років тому +3

      zlyfer
      Geht mir genauso. Der Typ ist bombe.

    • @jakoblenke3012
      @jakoblenke3012 7 років тому +2

      zlyfer ich verstehe alles super ;-)

    • @zlyfer
      @zlyfer 7 років тому

      GamerskingLP Ich eigentlich auch, aber manchmal verstehe ich ein paar Sachen erst nach ein paar Sekunden. :'D

  • @LastRellik
    @LastRellik 7 років тому +79

    In your 800 * 400 pixel picture using selection sort, your algorithm is doing (800 * 400) ^ 2 calculations, which is 102,400,000,000 calculations. If you were to use a more efficient algorithm, like mergesort, heapsort or quicksort, you would drop the number of calculations down to Log(800 * 400) * (800 * 400), which is 1,761,648 calculations in the worst case. That's 5,812,738% more expensive than it needs to be because of your poor choice of sorting algorithm. That's why your program was running so slow.

    • @TheCodingTrain
      @TheCodingTrain  7 років тому +33

      +LastRellik thanks for the thorough evaluation!!

    • @LastRellik
      @LastRellik 7 років тому +3

      Daniel Shiffman I love your videos, but even the fastest computer in the world couldn't solve that problem that way faster than my desktop could with a more efficient algorithm. I was blown away when you started using selection sort.

    • @lithiumfrost9498
      @lithiumfrost9498 7 років тому +19

      He did mention that it was just for simplicity's sake and that he could make great use of a fancy alg... 5:02

    • @LastRellik
      @LastRellik 7 років тому +11

      LithiumFrost True, but it could barely even solve the problem on a relatively small picture. I recreated this in just Java and can do huge resolution pictures in 2 seconds max. This could have been a great opportunity to show how important big O really is when it comes to solving large problems. 5,812,738% is no insignificant percentage.

    • @lithiumfrost9498
      @lithiumfrost9498 7 років тому +22

      Well, I think you're missing the entire point of this series. The goal isn't to create beautiful and efficient programs or teach people the best way of doing something, the goal is to showcase some problem or concept and inspire the viewer to go out and create their own, better way of doing it. (which is exactly what you've done) Expecting this series to always use best practices is a little unrealistic.
      Just my opinion though.

  • @matthehat
    @matthehat 7 років тому +1

    I love these videos. I downloaded processing a couple of years ago and messed around with it but didn't really see much potential in it. Now that I've seen your videos I'm hooked!

  • @kevnar
    @kevnar 7 років тому +109

    I made a program that creates artificial life out of pixels. Each pixel only has one trait: color. It uses a target image to test which pixel is more "adapted" to its environment. The pixels fight it out, and whichever pixel is closer to the color of the target image in that position wins and has a slightly mutated offspring. Repeat a million times and eventually the pixels have formed a civilization that looks pretty much like the target image, except it's writhing with life.
    See my channel for a video called Pixel Evolution.

    • @EDToasty
      @EDToasty 6 років тому +2

      that is really cool!

    • @santiagoboada9843
      @santiagoboada9843 6 років тому +5

      Can you upload some video showing the code working?

    • @Kitulous
      @Kitulous 6 років тому +4

      Have you deleted or hidden the video?

    • @Memory_Blanks
      @Memory_Blanks 6 років тому

      kevnar checking out!!

    • @LetTheWritersWrite
      @LetTheWritersWrite 5 років тому +2

      Dude I can't find it!

  • @harleyspeedthrust4013
    @harleyspeedthrust4013 6 років тому +13

    You can have custom sorting with Java with the Comparator or Comparable interfaces.

    • @okie9025
      @okie9025 5 років тому

      What about making the sorting algorithms yourself and not just making things even more complicated?

    • @livingfray2340
      @livingfray2340 5 років тому +5

      In what world is reimplementing a sorting algorithm less complicated than using comparators, which are designed for exactly this sort of problem?

  • @97scuoch
    @97scuoch 7 років тому +19

    Daniel your not cringey! :)

  • @quassseabass2770
    @quassseabass2770 7 років тому +2

    Hi Daniel :) I'm loving this series! I only found your channel a couple of days ago but I've been working my way through these videos and trying to replicate your code in Python, which I'm learning at the moment. Thankyou so much for the inspiration, my understanding of concepts like working with canvases through Tkinter and Pyglet is coming on in leaps and bounds thanks to your videos. Keep up the amazing work!
    PS. My favourite flower is the French Hydrangea

  • @gamingastronamy8615
    @gamingastronamy8615 6 років тому +11

    Sunflower: I don’t feel so good

  • @frmcf
    @frmcf 3 роки тому +1

    1:54
    Presenter: "Ooh look, there's a weird bar there. That's a glitch with my camera."
    Hipster NFT collectors in 2021: "I'll give you 420 ETH for it."

  • @davidramos5171
    @davidramos5171 7 років тому

    I found this channel not to long ago, and I'm loving every video! I have watched almost every single video of your p5 tutorial playlist and the coding challenges and it has helped me a lot on my programming, keep the good work!

  • @alekmoth
    @alekmoth 7 років тому +28

    int j = i + 1; // start with the next pixel. why compare with yourself?

    • @kamoroso94
      @kamoroso94 7 років тому +1

      alekmoth Also the outer loop should loop while i

    • @coppertones7093
      @coppertones7093 5 років тому

      what if i is already the brightest pixel? then you end up swapping it with the second brightest

  • @jonplaza81
    @jonplaza81 7 років тому

    Somehow found your channel and only regret it 30% of the time. Keep being you man, you're awesome. Subscribed

  • @eliascaceres3147
    @eliascaceres3147 7 років тому +29

    Wow I have that feeling like I'm waiting for the next episode of the walking dead, in this case the next coding challenge xD

    • @TheCodingTrain
      @TheCodingTrain  7 років тому +14

      That is maybe the nicest thing ever.

    • @iron05agario40
      @iron05agario40 7 років тому

      +Daniel Shiffman hy im a kid and i love codin can you recomende me a logiciel

    • @Min3vidz
      @Min3vidz 7 років тому

      You said you'd link to a document that explained a bunch about sorting algorhytms, but it isnt in the description. Could you please update it so that I can read it? :)

    • @iron05agario40
      @iron05agario40 7 років тому

      +Daniel Shiffman can you defrich this code: 01101000 01111001 00100000 01100100 01100001 01101110 01101001 01100101 01101100 00100000 01101000 01100101 01110010 01100101 00100000 01101001 01110011 00100000 01111001 01101111 01101001 01110010 00100000 01100010 01101001 01100111 00100000 01100110 01100001 01101110 00100000 01110000 01101100 01110011 00100000 01100011 01100001 01101110 00100000 01111001 01101111 01110101 00100000 01110100 01100101 01101100 01101100 00100000 01101101 01100101 00100000 01100001 00100000 01101100 01101111 01100111 01101001 01100011 01101001 01100101 01101100 00100000 01110100 01101000 01100001 01110100 00100000 01100011 01100001 01101110 00100000 01101001 00100000 01110011 01110100 01100001 01110010 01110100 00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101 01101001 01101110 01100111

    • @mattcaimi
      @mattcaimi 7 років тому

      I cracked your code Agar Mobile "hy daniel here is yoir big fan pls can you tell me a logiciel that can i start programing"

  • @GalHorowitz
    @GalHorowitz 7 років тому +21

    I must say you are the best teacher I ever "had". :)

  • @JamesTube
    @JamesTube 5 років тому

    This is probably the only channel that teaches me something while grabbing my interest. Subscribed

  • @kchen_
    @kchen_ 2 роки тому

    Again, a life-saving video. True gold.

  • @squishedtopieces185
    @squishedtopieces185 7 років тому +29

    My favourite flower is a dandelion
    P.S I also am a supporter of rainbows, flowers etc.

  • @Lostpanda123
    @Lostpanda123 7 років тому +5

    Great channel, and a great tutor! Thank you for being you. :)

  • @MistahBradley
    @MistahBradley 7 років тому +6

    I wish I could see this guy stoned as hell doing a challenge.

  • @BenRangel
    @BenRangel 7 років тому +1

    This is like arrays, for-loops and sorting basics in a nutshell. Think I'll show this to my friend who's just getting into programming

    • @howardbaxter2514
      @howardbaxter2514 7 років тому

      BenRangel I might recommend this to my old Comp Sci/Calculus teacher.

  • @K-Cylion
    @K-Cylion 7 років тому +16

    Could you make a machine learning program that will load a picture and try to recreate it?

    • @OMARYassin1
      @OMARYassin1 5 років тому +1

      What do you mean by "recreate" it?
      It can already copy it and paste it

  • @ugh4719
    @ugh4719 7 років тому

    I've just discovered this channel, and I already love it. It's hard to understand but so fascinating

  • @amuldogla4543
    @amuldogla4543 5 років тому

    I didn't get a single word what you explain but watch the full length of video because it was interesting ... Good job gentle man

  • @djune_
    @djune_ 7 років тому

    That outro clip with the dancing Dans is top-notch

  • @sinomirneja771
    @sinomirneja771 7 років тому +6

    you could cheat to make the animation run faster. calculate you result picture in setup, an in draw replace the pictures. (so you are not sorting in draw)

    • @eldronado
      @eldronado 7 років тому +1

      Yeaaah...that's what we see in every video game trailer

    • @TheCodingTrain
      @TheCodingTrain  7 років тому +2

      yes, good suggestion.

    • @sinomirneja771
      @sinomirneja771 7 років тому

      haha

    • @xXOMwtfFGXx
      @xXOMwtfFGXx 7 років тому +1

      +Daniel Shiffman (why doesn't this work anymore?!)
      Is it possible to calculate the algorithm with a gpu? I'm just a "hobby programmer" and don't know much about processing but there should be a way to use something like openGL.

    • @carlossoto9511
      @carlossoto9511 7 років тому +1

      JohnSchnee you could, but I'm not sure how efficient it'd be on a gpu, as you'd have to find a way to paralellize it on each pixel. I might try doing quicksort on opengl though, you just gave a new coding challenge

  • @Shiro-ii6nw
    @Shiro-ii6nw 7 років тому +13

    I saw your purple rain challenge and lighting was missing so, why not do a lighting challenge. One that strikes everywhere few second from 1 strike to 3 or 4 that would look cool

    • @kamoroso94
      @kamoroso94 7 років тому +1

      Aero I was inspired by that video and made a demo with lightning :)
      You can check it out at kamoroso94.github.io/thunderstorm

    • @Shiro-ii6nw
      @Shiro-ii6nw 7 років тому +1

      Kyle Amoroso nice that was cool, where do you write the code?

    • @Nadeem460
      @Nadeem460 7 років тому

      Nice, Can you share the code ?

    • @kamoroso94
      @kamoroso94 7 років тому

      Nadeem 460 It's on GitHub, github.com/kamoroso94/thunderstorm

    • @Nadeem460
      @Nadeem460 7 років тому +1

      Kyle Amoroso Ok Thanks I'm learning JS on my own I know C we learn it on school its a little bit similar.

  • @Yogurdenaranja
    @Yogurdenaranja 7 років тому

    This is so coollll t_t I did one program similar, but it was a random paintings generator, choosing one background (that was basically a landscape, a Monet or whatever you want) + a portrait, and analysing the pixels the contrast and hue changed to make it logical :)

  • @WinterGibbs
    @WinterGibbs 7 років тому +1

    i dont even code and these are cool as shit. love this channel.

  • @ARatQuiRit
    @ARatQuiRit 7 років тому +7

    Game of life next episode !

  • @Akhbash
    @Akhbash 7 років тому

    An idea to speed up the sorting algorithm would be to decrease the images resolution and then make each pixel bigger, so it's more notable what's going on.
    Also for this matter it would be nice to see something about how to increase an images dimensions by types of interpolation like bicubic interpolation.
    BTW: Sunflowers rules!

  • @enginerkan7622
    @enginerkan7622 6 років тому +1

    WHY MAC ?

  • @kalebdesousa355
    @kalebdesousa355 7 років тому

    Love seeing these videos!! Looking forward to the next one.

  • @MrSamisack
    @MrSamisack 7 років тому +1

    Love your videos, keep making them :D

  • @MrBittu92
    @MrBittu92 7 років тому

    This is awesome. I like your style. Not my serious C++ professor from the college.

  • @rydera3516
    @rydera3516 7 років тому

    happy new year, Daniel! keep going with the great videos!!
    P.S.: i wanted to thank you this way for these coding challenges, which inspired me to start learning to code.. and since you're so good at explaining stuff, i decided to do so with your tutorials, obviously:))
    P.P.S.: i love those cringy moments when you start talking to yourself:)))))
    have a great year!

  • @mattcaimi
    @mattcaimi 7 років тому

    Hi Dan,
    Couldn't you use any "off-the-shelf" sorting algorithm you like and customize how the pixels compare to each other? I'm sure lots of coding beginners appreciate you showing the implementation of selection sort, although they should also get used to trusting black boxes. Wonderful videos dude!
    Matt

  • @mirjamk2882
    @mirjamk2882 3 роки тому

    my favorite flowers are hibiscus, but sunflowers are gorgeous as well :)

  • @ClaudiaOfTheWorld
    @ClaudiaOfTheWorld 7 років тому

    Dan your tutorials are so inspiring! Thank you so much for making these, you are the sunflower that brightens our day 🌻 my favourite flower is nigella! you're like the cool coding big brother I never had...

  • @SaarN1337
    @SaarN1337 7 років тому

    You're so great at teaching! I mean, besides being sharp (and hyperactive? lol) it's all very down to earth and very easy to understand.
    Sadly, I'm not really into flowers (besides edible veggies?) but I do love your positive vibe. Happy Hanukkah ;)

  • @sven_93
    @sven_93 7 років тому +2

    If you want to understand the sorting algorithms some more, i suggest you look up the UA-cam channel "AlgoRythmics". Really great visualization

  • @kuskus_th13
    @kuskus_th13 7 років тому +2

    Is Processing actually yours?
    Just asking because I was wondering recently.
    BTW grats for 165K subs and Merry Christmas!

    • @ingrimmmm
      @ingrimmmm 7 років тому +4

      processing.org/people/
      'Ben Fry and Casey Reas started Processing in Spring 2001 and continue to obsessively work on
      it. In 2012, they started the Processing Foundation along with Dan Shiffman, who formally joined as a third project lead.'

    • @kuskus_th13
      @kuskus_th13 7 років тому

      ingrimmmm ok

  • @Q_20
    @Q_20 7 років тому +1

    That outro is dope

  • @marcusloar8307
    @marcusloar8307 7 років тому

    Really enjoy watching the videos! You're amazing. More Java please!

  • @PotatoKaboom
    @PotatoKaboom 7 років тому +6

    My favorite flower is the Caesalpinia pulcherrima

  • @tobeypeters
    @tobeypeters 6 років тому +1

    I don't understand ... The swap ... In JavaScript u can use tuples. There's different ways. You can:
    let swap = ([a,b]) => [b,a]; swap([1,2]);
    or
    [a[1], a[0]] = [a[0], a[1]];
    There's always many ways.

  • @bobke0007te
    @bobke0007te 7 років тому +4

    please do a coding challenge for the koch snowflake, but then also with every other possible shapes

  • @Forseti2
    @Forseti2 7 років тому +1

    The Coding Train: what causes those artifacts in sorted result?

  • @a.krishna3924
    @a.krishna3924 7 років тому

    hi why does it say "Could not find a method to load (file name)"?

  • @ore2236
    @ore2236 6 років тому +1

    A bubble sort would of looked super cool !
    And maybe a counting sort would be faster ?

    • @cicciobombo7496
      @cicciobombo7496 5 років тому

      Counting sort is good when there are relatively few options, here every pixel has 3 value 0-255, so you'd have 256^3 possibilities, not doable.

  • @agustinfacundo348
    @agustinfacundo348 7 років тому +1

    I don't understand a shit but I find very pleasent the way he writes the codes

  • @5-meo-dmt299
    @5-meo-dmt299 5 років тому +3

    Why Selection Sort??? Why not Counting Sort???

  • @tjw_
    @tjw_ 7 років тому

    Nasturtiums are the best because you can eat them and they are pretty. Nice and peppery. We call then Nasturt-Yums!

  • @TheGammaFrog
    @TheGammaFrog 7 років тому

    This guy is the greatest!

  • @mskogly
    @mskogly 6 років тому

    To make it run faster perhaps you could make blocks with similar pixels, and the sort the blocks

  • @ninjaasmoke
    @ninjaasmoke 3 роки тому +1

    I don't know about flowers but I like kittens
    And I'm searching for the people that write "cringe". I'm coming for you

  • @ramil17998
    @ramil17998 7 років тому

    Hello Daniel. Didn't really know where to write about it. You know how in Processing Code-Completion is Ctrl-Space on mac? That combination is already used by OS if one has a bilingual keyboard, so I can't use code-completion. I think it would be better if it was some other combination. Most commonly developers use TAB for that purpose. What do you think?

  • @seancpp
    @seancpp 5 років тому

    I love these videos and I love Processing/p5.js

  • @Holobrine
    @Holobrine 5 років тому

    Image sorting sounds like an interesting way to visualize sorting algorithms.

  • @Kalrox1
    @Kalrox1 7 років тому

    I dare you to recreate one coding language using another language!
    ex. using python to remake js
    side mission: program a mini program inside the program you programmed using a program... and record it with a recording program that you used a program to download the program that someone else programmed
    p.s
    please don't explode off the previous sentence
    p.s.s
    I loooooove your vids

  • @mennomarkus4821
    @mennomarkus4821 7 років тому

    A rose! :)
    The feeling of love and power, but if you don't look out you might cut yourself on it....
    ...just like the rose.

  • @Alan-th6og
    @Alan-th6og 7 років тому +1

    I really like daffodils... You should code checkers!

  • @pazka
    @pazka 7 років тому

    I love what you do ! I don't know if it already has been said but could you use a counting sort ? It would be much faster and with the correct diplay , fun to watch ( for example seeing a pink pixel go trough the image and seeing the color counter updating, etc.. ).
    I just don't know if an array of 16 million int is allowed in Processing.
    Or create a dynamic array ?

  • @Kitulous
    @Kitulous 6 років тому

    11:19 but isn't it O(n!) algorighm? You don't start from 0 in the nested loop, so e.g. you have 10 pixels, first you check 10 pixels, then 9, then 8 and so on, so you get 10*9*8*7*6*5*4*3*2*1 = 10! loop entries. Am I wrong?

  • @TheMaxstick
    @TheMaxstick 7 років тому

    i love black rose :3 it's look cool :p and nice video you have there love your videos

  • @TheSkepticSkwerl
    @TheSkepticSkwerl 5 років тому

    Why didn't you do a faster sort? And you should have sorted by pixel value. So it would have come out reverse rainbow color. Neat video. A great still to emulate

  • @iamlulu6196
    @iamlulu6196 7 років тому

    Just recently discovered your Videos
    But you are the reason i wanna get into coding
    Thank you :)

  • @ABaumstumpf
    @ABaumstumpf 7 років тому

    Really gotta wonder what makes this so slow.
    Kinda guessing it is the constant accessing of the pixel-array.
    maybe it would be faster if you copy the data to a color-array? And do the sorting there.

  • @RigatoniModular
    @RigatoniModular 7 років тому +4

    Couldn't you just write a comparator?

  • @YawnAmphi
    @YawnAmphi 7 років тому

    Would be interesting to also focus on the coding practice itself. How about a test-driven coding challenge? :)

  • @4AneR
    @4AneR 7 років тому

    Hey Dan, isn't the variable creation in loop (8:32) wrong as projecting decision? I know it's just a short programm, but this style makes beginners follow the bad way of programming. Still you're awesome

    • @TheCodingTrain
      @TheCodingTrain  7 років тому

      Yes, there are lots of things I could add here to optimize and make more efficient!

  • @sazallazoum
    @sazallazoum 3 роки тому

    Hey Dan!!
    Very nice ideas.
    Does processing (or p5.js) work with DICOM images (DICOM is kind of digital images used in medicine, mainly in diagnostic images like x-ray or CT images?

  • @MikiMichaeli
    @MikiMichaeli 7 років тому +1

    Don't want to be a hater because I love most of your videos, but in this case you could have just write a Comparator function and use it with Arrays.sort... Would save a lot of work and then you could use the efficient sorting java implements on its own.

  • @uujmmy
    @uujmmy 2 роки тому +1

    Hello! I was wondering how would you translate this code for the pixels in a video instead of an image?

    • @TheCodingTrain
      @TheCodingTrain  2 роки тому

      Oh I like this idea! Come and join the discord, maybe I can tackle this on a live stream someday! thecodingtrain.com/discord

  • @benshapiro2wt298
    @benshapiro2wt298 7 років тому

    Make a processing code draw a box around objects of interest, like a fast moving object, a small moving object, maybe have it detect Meteors and Planes!

  • @Joshk326
    @Joshk326 7 років тому

    This was actually helpful for a project I'm doing

  • @BarkatheMoon
    @BarkatheMoon 7 років тому

    Is there a reason you didn't just make a comparator for Color and use the built-in sort? No need to reinvent the wheel.

  • @sunnymojo7406
    @sunnymojo7406 7 років тому

    19:47 made my day x)

  • @Mikelectric
    @Mikelectric 5 років тому

    how does the sorter know that its the brightest pixel if it cant look further down the line? or does it look at all the remaining pixels every time before deciding which one is brightest?

  • @trumanknight873
    @trumanknight873 7 років тому

    Love the videos. Keep up the awesome work! You should do a coding challenge for Doodle Jump.

  • @typhlosion_the_volcano_pokemon
    @typhlosion_the_volcano_pokemon 5 років тому

    I’m from KS, so I love sunflowers! 😀

  • @uujmmy
    @uujmmy 2 роки тому

    u r sooo cool for making this tutorial

  • @xnick_uy
    @xnick_uy 7 років тому

    I like this one's simple program yet appealing results.
    I am curious about how would this benchmark against a native sorting function ( with improved algorithms). But I'm not sure how to get the same animation effect out of a single call to the sorting function.

  • @robertcoyle1532
    @robertcoyle1532 7 років тому

    Yea! Processing again!!

  • @Smittel
    @Smittel 7 років тому +1

    What if you make the hue the vertical position and the brightness the horizontal?

  • @Tortuex_
    @Tortuex_ 7 років тому

    I LOOOOVE THE OUTRO 😍😂

  • @monish1478
    @monish1478 7 років тому

    +Daniel Shiffman, can you further elaborate on your "typo" at the end of your video? Why wouldn't you swap in the outer for loop? Thanks!

  • @dudemanzero
    @dudemanzero 7 років тому +1

    Looks like you made a program that makes cool glitch art instead of sorted images :o

  • @mitchelline
    @mitchelline 7 років тому

    Flowers and rainbown. This dude must be high af

  • @ArtstersRecords
    @ArtstersRecords 5 років тому

    It’s n log n algo. For every pixel you look n - i pixels.

  • @NonTwinBrothers
    @NonTwinBrothers 7 років тому

    Thanks! I made it sort with quick sort instead

    • @TheCodingTrain
      @TheCodingTrain  7 років тому

      cool! Please share!

    • @NonTwinBrothers
      @NonTwinBrothers 7 років тому

      Here's a link to the zip file
      sites.google.com/site/nontwinbrothers/attachments/processing/PixelQuickSorting.zip

  • @pigcatapult
    @pigcatapult 5 років тому

    Blue roses, for achieving the impossible.