[Processing] += operator, function equivalent?

1. Sep 15, 2014

mishima

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.

2. Sep 15, 2014

rcgldr

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;

3. Sep 15, 2014

mishima

Ah, of course...thanks.