Hey Ryan!
Thanks for the feedback, glad you liked the mechanic. The solution is based on this algorithm:
https://depts.washington.edu/acelab/proj/dollar/index.html
I've found a really old, Godot 2 implementation of it here: https://github.com/blurymind/1dollar_gesture_recogniser
This is what I updated and tweaked for a Godot 4 version which is available on my GitHub:
https://github.com/guladam/BigBlackBookOfMagic/tree/main/spellcasting
Hope that makes sense! :))