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)
hsv(h,0,v)
}