aboutsummaryrefslogtreecommitdiff
path: root/app/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils.js')
-rw-r--r--app/utils.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/utils.js b/app/utils.js
index d401564..53ab424 100644
--- a/app/utils.js
+++ b/app/utils.js
@@ -5,3 +5,12 @@ export function zeroPad(i) {
}
return i;
}
+
+export function drawDigit(val, place) {
+ place.image = `quantifier/${val}.png`
+ if (val == 1) {
+ place.width = 11;
+ } else {
+ place.width = 18;
+ }
+}