Needed an easy way to create tests for a perf tuning project at work so I hacked up an app to generate functions from hand-drawn graphs. https://t.co/cX6p9bfmHm
The app simply captures points along the drawn bezier path segments and then translates those points to the grid's scale and X & Y axes.
You can then generate code in a few languages that contains the array of points and a fun of X that returns Y via linear interpolation.
Anyway, this is unlikely a widespread problem, but hey, that's the fun thing about programming:
You can scratch the weirdest itches just by writing a little bit of software.
Ian Brown @igb
Anyway, this will help us mock, test, & demo complex multi-parameter scenarios. Maybe someone else out there has a similar problem. *shrug*
View on Twitter ↗
0 0

Replies

I'll maybe/eventually post it to the AppStore, but in the meantime the code [⚠️ written by a manager⚠️ ] is here: github.com/igb/fof