You can use this if you want This uses clones and pen to function, you can create buttons using the buttonData list (x, y, size, wide) The <pressed> value of the buttons is stored in the global list buttonPressed, with the index corresponding to the index of the button on the buttonData (the list has a bit of delay on releasing which is intended, you can remove it if you want)
This makes use of the sigmoid function (1 / 1 + e^(-x)), my new favorite function for animation There's also some fun math to calculate the perimeter and the location of the furthest point of the animation (involving normalising the perimeter of the three sections) I kind of want to optimise the calculations This is based on my python project: CoolButton https://github.com/Known4225/PythonProjects/blob/main/CoolButton.py Clones are used to emulate instances of a button class