https://powdertoy.co.uk/Wiki/W/Talk:Lua_API:Elements.html
Why is there two methods of adding the functions to an element? The wiki seems to imply that you have to use the old API to do so, but that is not true because Graphics and Update properties can be used to define those.
jacob1:
I guess the wiki was wrong. It does later in the page say that "Update" and "Graphics" work, maybe those are newer properties, or just whoever wrote the page didn't know about it. You are free to fix it :P, and I recommend fixing it because the new functions are better (well except for that one glitch that I fixed ...)
I updated the page, including an example. I'm assuming by better, you mean less lag and glitches?