summaryrefslogtreecommitdiff
path: root/web/web_opts.c
blob: 118823200b166addbb816b6d9edc8e23e22d0dc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "web_opts.h"

#include "comp.h"

#include <math.h>

#include <emscripten/emscripten.h>

int delay_ms = 1000;

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;
}