How to make parabola animation?

Ah, I apologize: I'd meant to upload the actual Hype file in my earlier post so you could see the code, but now see I only zipped the exported files. Oops! The Hype doc is attached to this post, and in this one I've changed the slider bounds as you requested, which you can see if you look in the "loadCalc()" function tab (lines 42-48).

Typically I find it easiest to set up a calculator pretty much the way I want it on the Desmos website, and then open the browser's console and enter

copy(Calc.getState());

which copies the settings from that calculator. (You may see undefined in response. Just ignore that; the settings are actually on your clipboard.) Then paste that code into this part of the loadCalc() function:

calculator.setState( 
     [PASTE HERE] 
);

which would mean replacing lines 9 - 64 in this Hype document. Even the Desmos folks say this process is the easiest way to get everything mostly set the way you want it, including letting the site handle writing the equations (via LaTeX) correctly; just much easier than trying to work purely via the API from scratch.

Happy to help you make more progress here, especially if you post your in-progress .hype file as @jonathan suggested. :slightly_smiling_face:

Desmos-in-Hype.hype.zip (15.3 KB)

2 Likes