"active" and "static" mode on simple code

@micycle is almost certainly right.

The screenshot show two additional tabs. So the code you are showing us should work in static mode, but the second and third tab probably included something – a function like draw(), or a class definition, et cetera – that can’t be used in static mode.

Keep in mind that when Processing runs all tabs are combined into one document before transpiling.

4 Likes