p5 is a simple package that provides primitives resembling the ones exposed by p5js.org
BSD 3-Clause "New" or "Revised" License
146
stars
12
forks
source link
p5: send custom events in order to control the behavior of the draw loop #34
Closed
psampaz closed 3 years ago
Currently the is no way to control the execution of Proc draw loop since it is handled by events received by a receive only channel (<-chan event.Event) https://github.com/go-p5/p5/blob/fea8ed50309696b61da315102400b5dec754a593/proc.go#L208).
Providing a way to send events and control/stop the loop would make Proc more testable.