get_color = \radius ->
rgba 255 0 0 0
splat = \radius ->
let color = get_color radius
fill color (circle 0 0 0)
[
splat 64
splat 64
]
an exception occurred: 1st argument to `fill` must be a color (rgba)
It's pretty clear from the example that color should be an rgba, but it for some reason isn't. Probably because the let becomes deinitialized too early, or never initialized quite right?
It's weird because if you only call splat once, then it doesn't error out:
get_color = \radius ->
rgba 255 0 0 0
splat = \radius ->
let color = get_color radius
fill color (circle 0 0 0)
[
splat 64
]
It's pretty clear from the example that
color
should be anrgba
, but it for some reason isn't. Probably because thelet
becomes deinitialized too early, or never initialized quite right?It's weird because if you only call
splat
once, then it doesn't error out: