News:

Please remember to do a search before you ask a question!

Main Menu

Maths is [sometimes] fun

Started by Andy H, January 27, 2022, 02:16:19 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Andy H

I sometimes visit a website called 'Maths is fun' .  Well this started out as fun. but turned out to be a pain to iron out the details. Ans of course, me, not being very good at trigonometry did not help.  I got part of a formula from Wikipedia, and another bit from VBscript help file.  But it took quite a bit longer than expected, to find the right order, and a way to fit the different bits of code together for AnimationLab.  Including adding extra stuff to keep track of things.

The animation itself looks pretty simple, and for anyone good at maths, it probably is.  There are much easier ways to animate this. But for this part of a larger project,  I wanted to use custom code.  Then simply pass variables to some commands.   Attached is the file, saved back to TC2018. In case anyone fancies a look,  The code is heavily commented, so should be easy to follow.

Henry Hubich


nikkipollard

That is very cool.
Especially, considering that vbscript only has half the trigonometry functions built into it.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h