Function grapher

Function grapher

See inside, make or choose a lambda of your choice, press the Flag,and it’ll graph!

Some things you can create:



If you have a cool lambda with an interesting result, I will add it to ‘presets’!

Hearts!

Nice! I’ll add it!
Also, you don’t need to put REPORT in CALL:
untitled script pic (72)

untitled script pic (71)

I bet you could make that look more like conventional hearts by squishing the x axis, i.e., g(x) = f(2x).

Added!

I ended up going with this much more elegant design and I tweaked the values.

This monstrosity draws a circle around the mouse pointer. You can change the radius.

I added it!

You should probably change it to the fixed version.

Done!

here!
Function grapher script pic

Nice! It sounds very interesting when sound is on!

Sawtooth
Function grapher script pic (2)

If you take the first few odd harmonics of a frequency, you get something that sounds much like a pipe organ (with some tweaking of the amplitudes of the harmonics).

Interesting project !

I give this to you:

It go to the next preset and start computation (in loop)

Error texture/checkerboard

Function grapher script pic (4)

also add a color variable to set the pen color to

Function grapher script pic (3)

You should make both x and y inputs to functions!

I wonder what people could make with both positions…

Probably not; The x is the input, and the y is the output!

Yeah, I realized that just before posting. It wouln’t really work…

If you make the output from the function a color, then it would make sense to have both X and Y inputs. (Think about those pictures you see of the Mandelbrot and Julia sets.) Or, if the output is a Boolean, then you have a relation grapher, giving a more straightforward way to create filled shapes like the filled sine wave and the hearts that people have posted here.