In the first code snippet, I don't understand how Background(1:200, ground) is picked up. It looks to me like a statement disconnected from the others. I also don't understand how calling background("black") and sethue("white") in function ground affects anything. Are those some dynamic scope shenanigans? Or do those just modify some global variables? Generally, a lot of parts of the code don't seem connected in any way, I don't see how the data flows through code. Could someone familiar with Julia ELI5?
In the first code snippet, I don't understand how Background(1:200, ground) is picked up. It looks to me like a statement disconnected from the others. I also don't understand how calling background("black") and sethue("white") in function ground affects anything. Are those some dynamic scope shenanigans? Or do those just modify some global variables? Generally, a lot of parts of the code don't seem connected in any way, I don't see how the data flows through code. Could someone familiar with Julia ELI5?