summaryrefslogtreecommitdiff
path: root/web/hitomezashi_web.h
diff options
context:
space:
mode:
authoruntir_l <87096069+untir-l@users.noreply.github.com>2022-02-27 13:23:43 +0000
committeruntir_l <87096069+untir-l@users.noreply.github.com>2022-02-27 13:28:20 +0000
commit1ddd20748d01570929a88672366dff69ce300a51 (patch)
tree5c53f1765484427fc9334acfb7fa463c1d65b77b /web/hitomezashi_web.h
parenta492064a97a04939ca5e995c3c6df4935b9e2cb9 (diff)
downloadhitomezashi-1ddd20748d01570929a88672366dff69ce300a51.tar
hitomezashi-1ddd20748d01570929a88672366dff69ce300a51.tar.gz
hitomezashi-1ddd20748d01570929a88672366dff69ce300a51.zip
Add support for choosing foreground and background colours
Diffstat (limited to 'web/hitomezashi_web.h')
-rw-r--r--web/hitomezashi_web.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/hitomezashi_web.h b/web/hitomezashi_web.h
index 5d4f523..361a8c2 100644
--- a/web/hitomezashi_web.h
+++ b/web/hitomezashi_web.h
@@ -2,6 +2,7 @@
#ifndef HITOMEZASHI_WEB_H
#define HITOMEZASHI_WEB_H
+#include "SDL2/SDL.h"
#include "emscripten.h"
enum Hitomezashi_Web_Result {
@@ -12,7 +13,8 @@ enum Hitomezashi_Web_Result {
};
int hitomezashi_web(int x_pattern_len, int y_pattern_len, char *x_pattern,
- char *y_pattern, int gap, int line_thickness);
+ char *y_pattern, int gap, int line_thickness,
+ Uint32 fg_colour, Uint32 bg_colour);
/** Parse the URL query string and return the parameters thereof.
*