Flashing Strobe pattern

Is there a way to add a delay or pause to a function? I am trying to create a simple flashing pattern similar to the way drone strobes flash. Using this for my ultralight I’ll post pics soon! Processing: IMG_0919.png…

I think I found in search that works:

export function beforeRender(delta) {
  t1 = time(.01) // frequency of flash - lower is faster
  t2 = .03       // what percentage of the cycle will the light be on?

export function render(index) {
h = 1
v = square(t1,t2)

Yes! It’s possible. The example you found is a good start. Do you need to be able to pause in the middle of a square wave on-off like that? Or are yo asking more general how to pause anything passed on time()?