Log In  

Cart #ch_func_demo-0 | 2021-02-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I was thinking of ways to decouple code flow from a standard procedural design and more towards what I call a chaining queue. Basically, the queue starts off with a single function. This function would then add itself with some modified parameters to the call queue via a table {func, args...}. This would closely resemble JavaScript's setTimeout() function.

This demo only uses a 1:1 call (it calls itself once, and that's it), meaning that the queue will never overfill.

I ended up making some really cool-looking color demo accidentally!

P#88200 2021-02-26 13:48

Cart #ch_func_circ-0 | 2021-02-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Using a slightly modified function (circular movement)

P#88202 2021-02-26 14:21

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-03 11:54:36 | 0.010s | Q:15