Infinite Snowflakes: The Basics of Random Generation with P5js

Sdílet
Vložit
  • čas přidán 5. 08. 2024
  • Code from video: editor.p5js.org/BarneyCodes/s...
    To get into the holiday spirit (and in an attempt to cool myself down from the hot Australian summer...) we're going to be generating random snowflakes today!
    The process is similar to how you might do it with paper and scissors: generate some points for one edge, then "unfold" them to create an entire snowflake!
    Follow me:
    Support the channel: www.youtube.com/@BarneyCodes/...
    Twitter: / barneycodes
    Reddit: / barneycodes
    Chapters:
    0:00 The process
    1:30 Generating the edge points
    3:25 Reflecting the points into a full segment
    4:57 Displaying the points
    6:23 Using the segments to make a snowflake
    7:36 Combining our functions
    8:36 Generating MORE
    9:22 Fixing some dodgy code
    #creativecoding #p5js #javascript

Komentáře • 5

  • @BarneyCodes
    @BarneyCodes  Před rokem +3

    I hope you all have a great holiday period! See you in the new year 🤙
    Also, try layering multiple snowflakes together for even more intricate designs!
    If you'd like to see what else I'm working on, it would be great if you could wishlist my game Star Mining Co. on Steam! s.team/a/2584800/

  • @jimrakel418
    @jimrakel418 Před rokem +2

    Great video and hoping you have an awesome holiday period and a Happy New Year also.

    • @BarneyCodes
      @BarneyCodes  Před rokem +2

      Thank you so much, I hope you have a great holiday season too!

  • @StevesMakerspace
    @StevesMakerspace Před rokem +2

    Awesome! Nice tutorial, as usual.