Spill: Sequencing
Similar to hydra, you can use dynamic arguments by passing them arrow functions.
$: cell("P")
.splash(() => ((Math.sine(time) + 1) / 2) * 999);
You can also use strudel mini notation by using double quotes.
$: cell("P")
.splash("<100 200 [300 400]>");
Single quotes and backticks don’t get interpreted as mini-notation.
Before-and-after diagrams can’t be used with mini-notation.
$: rule()
.diagram('AB => AB')
symmetry("r")
2D diagrams also can’t be used with mini-notation.
$: rule()
.to(`
B
A
`)
1D drawings can be used with mini-notation though!
$: rule()
.from("AB")
.to("<BA BB>")
Here’s a simple example that makes the screen flip between black and white from cycle to cycle.
$: cell("T")
.splash("<000 999>")
$: rule().to("T")
back to the spill