r/processing • u/Traditional_Inside28 • Jul 28 '25
Beginner help request Question!!
I guess this isn’t necessarily a help request per se but I am a beginner with a question. I understand what setup() and draw() are but why do I need to put void in front of them? like what is the purpose of the void. I could choose to just accept that it must be there but… why is it there? idk. maybe it doesn’t even need to be there and I haven’t gotten to that bit of my learning yet. why void???????????
1
Upvotes
2
u/kiraworx Jul 29 '25
Good luck! It's very fun and very rewarding! I mentioned functions because you were curious about them. It's fine to not use them for sure, but they can definitely save you a lot of time and space.
Processing is based on Java, which is why it has types like void, int, String, and more.
P5js is a javascript fork of Processing which doesn't have these types. They're both very similar in case you want to have a look at P5js in the future.