This is based on the Turbowarp Graphics 2D Extension. Most of the blocks are here so you can implement them in your own projects.
ChatGPT for all the math formulas I needed to know :D