Closed ContemptibleCentreUser closed 3 years ago
Hi @ContemptibleCentreUser,
I believe this is somewhat expected behaviour. You are not suppoded to "mix static and dynamic modes".
Static mode is without setup()
and draw()
. If you create setup()
and/or draw()
you are supposed to have all drawing functions inside them.
Given any built-in function is called (such as
draw()
ormouseClicked
), it seems attributes such asstrokeWeight()
,stroke()
raise aNullPointerException
error. For example, whenis run, it returns a not very fun looking error:
Contrastingly, if I run
With no built-in functions, the code works as intended. A bit of a disclaimer, I am a bit of a newbie and this might just be an an oversight of mine.