I'm surprised you didn't use floating point math, it seems cumbersome to make animations that way. My attempt at programmable LED strips used Lua (like that: https://gist.githubusercontent.com/Milek7/760a683f3480a4ff95...), though they were driven directly from Linux SBC. https://milek7.pl/.stuff/26gru.webm