Arguments
You can set the arguments you expect when constructing an atom (and their default values).
element Explosion {
arg size 10
arg shape "circle"
}
When you make an Explosion atom somewhere in your code, you could use those arguments:
new Explosion(20, "circle")
Note: You would still need to implement what those arguments do in your element's code.
Last updated
Was this helpful?