[Processing] += operator, function equivalent?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 1K views
mishima
Messages
576
Reaction score
43
Hi, I was curious how I could turn any expression that looks like:

x += (100- x) * 0.01;

into a function that could be graphed.
 
Physics news on Phys.org
You need a second parameter, perhaps time (t) in order to generate a 2d graph.

t = ...
x = ...

...

t += delta_t;
x += (100- x) * 0.01;
 
Ah, of course...thanks.