Electrical Circuit Pulse Particle Effect in Java + Processing

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 10

  • @mandor955
    @mandor955 6 років тому +3

    Insanely neat! Makes me want to get into these sort of coding challenges too!

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

      Thanks! It's a lot of fun! There's a link to the code in the description if you want to have a play around with it :)

  • @boiimcfacto2364
    @boiimcfacto2364 Рік тому +2

    Really cool, and love your explanations along with it :)

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

    Very cool, thank you for sharing!

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

      Thank you, glad you like it!

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

    Really cool!

  • @partymarty1856
    @partymarty1856 Рік тому +1

    wtf mate void? .get? what are these methods

    • @BarneyCodes
      @BarneyCodes  Рік тому +1

      Processing uses the Java programming language which is a strongly typed language. That means that you have to specify the type of every variable and also the type of whatever is being returned by a function.
      So if your function returns a string you have to write that as part of the function definition. If your function doesn't return anything, then you can use the "void" keyword to specify an empty return type.
      All the particles for this effect are stored in an ArrayList. The get() function retrieves a particle from the ArrayList it's being used on at the position specified. Ie list.get(3) will get the particle at index 3 in the list.
      I hope that helps! Let me know if you have any other questions!