Building a Media Player #3: Median Cut and Color Extraction

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 28

  • @dassurma
    @dassurma 7 лет назад +9

    Side note: A simpler but less efficient algorithm for generating color palettes is k-means clustering. It’s a good exercise to implement :)

    • @aerotwist
      @aerotwist 7 лет назад

      attentioncore yeah Surma. hurry up...

    • @RickonDraw
      @RickonDraw 7 лет назад

      I tried implementing it based on your comment so thanks for the tip! I don't have really have mathematical background or experience so it was kinda fun doing it. But the program is pretty slow and it gives me different (but what looks like somewhat similar/correct) color swatches back on every run. Don't know if I understand k-means incorrectly or my implementation is flawed; probably both ;)

    • @frankponte7261
      @frankponte7261 4 года назад

      It certainly iess less efficient but the thing is to prove that there's more out there than k-means for generating color palettes!

  • @dkbrummitt
    @dkbrummitt 7 лет назад

    Love the series. To any developers that want play with the media cut... the bug that he fixes consistenly produces a muted palette. Also, generating the complementary color swatch creates a lovely contrast (so far)

  • @WyMustIGo
    @WyMustIGo 3 года назад

    Google is behind the cutting edge. I was doing this back in the late 80s.

  • @KevinSheppard
    @KevinSheppard 7 лет назад +1

    Another Paul Lewis video, another opportunity to feel like a novice again lol. Keep 'em comin! This series is off to a great start.

  • @BernardoPacheco0
    @BernardoPacheco0 4 года назад +1

    Great video, Paul, perfect for my median cut exercise!

  • @08twistedfork
    @08twistedfork 7 лет назад

    every video is full of such sheer knowledge....

  • @AlessandroMenduni
    @AlessandroMenduni 7 лет назад +13

    Link to the repo or didn't happen.

  • @AlvarLagerlof
    @AlvarLagerlof 7 лет назад +1

    This is genially good! Really interesting series

  • @juliannicholls
    @juliannicholls 7 лет назад

    As soon as I saw the initially generated swatch, I could see that there was obviously something wrong. There's a large swathe of greens in the middle of the picture which were not represented in the resulting palette.

  • @valandil11
    @valandil11 7 лет назад

    So, I'm not the only one who make mistakes while copy&pasting!
    What a relieve...

  • @GuillaumeRossolini
    @GuillaumeRossolini 7 лет назад

    May I suggest putting a link to the Wikipedia article next to the const calcLuminance formula? As a code comment

  • @sethsamuel7536
    @sethsamuel7536 7 лет назад

    What are the Node packages I need to install through out the tutorials

  • @kevctrl
    @kevctrl 7 лет назад

    Paul, so far how different has been for you doing basic scripting tasks in node.js vs python, the fact that python has a big standard library and for node.js you need to install modules. Also the programming model of node.js, you have EventEmmiter, Stream, Buffer, I feel a bit hard to understand how all interconnects.

    • @aerotwist
      @aerotwist 7 лет назад

      Kevin Rodriguez Roman great question. To be honest I keep things really simple, though this time I am using DustJS for templating because it supports async templates, i.e. you can use Promises. Lots of people know way more than me about Node. Python vs Node? I dunno, both have up and downsides.

  • @borisaranovich161
    @borisaranovich161 7 лет назад

    Q: why is DEFAULT_DEPTH a getter method and not just a property? Read-only, or anything else?

  • @jorgejimenez7558
    @jorgejimenez7558 3 года назад

    Hello some have the code of this tutorial?

  • @rlamacraft
    @rlamacraft 7 лет назад

    Never before have I felt more like a rubber duck…

  • @93chrisbird
    @93chrisbird 7 лет назад +1

    Yayyy day #3! :D

  • @shemshap
    @shemshap 7 лет назад +1

    am i the only one that had to pause the code section to understand the quantizing bit and still didnt understand it:(

    • @aerotwist
      @aerotwist 7 лет назад

      Reggie_thoughts have a read of the Wikipedia article on Median Cut. It explains it really well.

  • @bahuma20
    @bahuma20 7 лет назад

    Nice video :)

  • @Manish-fm5iv
    @Manish-fm5iv 7 лет назад

    hash four where are you? :)