#include "web_opts.h" #include "comp.h" #include #include int delay_ms = 1000; void opts_init() { EM_ASM(readOpts()); EM_ASM({updateDelay($0)}, delay_ms); EM_ASM({updateStdev($0)}, horizontal_stdev); } EMSCRIPTEN_KEEPALIVE void set_delay(int delay) { delay_ms = delay; } EMSCRIPTEN_KEEPALIVE void set_stdev(float stdev) { if (!isnan(stdev)) horizontal_stdev = vertical_stdev = stdev; }