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!
Insanely neat! Makes me want to get into these sort of coding challenges too!
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 :)
Really cool, and love your explanations along with it :)
Thanks! Glad you enjoyed it!
Very cool, thank you for sharing!
Thank you, glad you like it!
Really cool!
Thanks! Glad you liked it!
wtf mate void? .get? what are these methods
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!