Desmos Portals

DESMOS PORTALS?

This graph is exactly what the title implies.  They're Desmos portals.  They work exactly like one would expect regular portals to behavethe blue one moves anything that enters to the same local position at the orange one. You can type in whatever f(x) you want and it'll mostly workif not try increasing the resolve resolution and that should fix it.

I made this graph at the end of 2019 as yet another coping mechanism for my endless boredom.  It took about three days to get it working well enough for me to be proud of. I had to come up with a way to solve for ALL intersections with the portal boundaries, a way to perform logical operations on those intersections, and a way to selectively hide things based on where the intersections happened.

The final result ended up being a hacky mess of horrors that just barely works.  My intersection solver struggles to detect functions that cross the portals with large slopes, and the portals are one-way only for the most part.

Despite these shortcomings, this graph managed to earn me my first reddit gold on r/desmos.