You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this idea while doing the dishes today and got really excited, but the work required to implement turns out to be significant, so I'm merely keeping it as an idea for now. Would open up a host of possibilities, though (and make some sliders obsolete, but I'd keep them anyway).
My hastily-jotted-down notes, left for future me to make sense of:
// TODO allow variables and arithmetic in option values// variables: i (iteration), s (segment number), x, y// +, -, *, /, ^ (exponentiation (or maybe bitwise operators)), %// (parens)// sine, cosine, tan, etc.// write parser or just eval? how to show errors? e.g. parse errors, div by 0// encode permissible variables for each option in options data structure (e.g. line shape has none, color has iteration, etc.)// could show permissible variables in popover// display like out-of-range numbers, or greenish?// gray out slider if value is not a number (or out of range)?, also disable increment and decrement via keyboard, provideo some ui element to reset back into bounds// would need to have some kind of evalOpt(o, env=[i, s, x, y]) function// challenge: serialization for url - encode alpha characters somehow? capitals? any issues with math characters?
The text was updated successfully, but these errors were encountered:
I had this idea while doing the dishes today and got really excited, but the work required to implement turns out to be significant, so I'm merely keeping it as an idea for now. Would open up a host of possibilities, though (and make some sliders obsolete, but I'd keep them anyway).
My hastily-jotted-down notes, left for future me to make sense of:
The text was updated successfully, but these errors were encountered: