Method initialize without writing in setup or draw

And btw, what are some ways I can initialize a method without writing method(); in setup() or draw() ??

Do you mean a function?

again, please explain and elaborate instead of writing just one sentence. How can we know what you mean?

see Calling Functions - Happy Coding

and for defining a function Creating Functions - Happy Coding

1 Like

Without

Void draw(){
Method();
}

No, you must call a function in order to run it.

Otherwise, processing wouldn’t know which function to run at which time.

(some functions like mousePressed get called automatically but I mean your own functions now)

2 Likes

When you don’t have an animation you don’t need functions at all

But that is also not nice code

It’s called a static Sketch

See Processing Overview / Processing.org

2 Likes